mirror of https://github.com/qpixel/dotfiles.git
113 lines
2.5 KiB
Plaintext
113 lines
2.5 KiB
Plaintext
zstyle ':znap:*' repos-dir ~/znap
|
|
source ~/repos/zsh-snap/znap.zsh
|
|
# plugins
|
|
|
|
# starship
|
|
export SPACESHIP_PROMPT_ASYNC=FALSE
|
|
#znap eval starship 'starship init zsh --print-full-init'
|
|
#znap prompt
|
|
|
|
znap source marlonrichert/zsh-autocomplete
|
|
|
|
zstyle ':autocomplete:*' min-input 1
|
|
|
|
znap source zsh-users/zsh-autosuggestions
|
|
znap source zsh-users/zsh-completions
|
|
|
|
|
|
# User configuration
|
|
|
|
# export MANPATH="/usr/local/man:$MANPATH"
|
|
|
|
# You may need to manually set your language environment
|
|
# export LANG=en_US.UTF-8
|
|
|
|
# Preferred editor for local and remote sessions
|
|
if [[ -n $SSH_CONNECTION ]]; then
|
|
export EDITOR='vim'
|
|
else
|
|
export EDITOR='nvim'
|
|
fi
|
|
|
|
# Compilation flags
|
|
# export ARCHFLAGS="-arch x86_64"
|
|
|
|
# Aliases
|
|
alias ls="exa"
|
|
alias tree="exa --tree"
|
|
|
|
# change cat to bat
|
|
alias cat="bat"
|
|
|
|
# vim to nvim
|
|
alias vim="nvim"
|
|
alias vi="nvim"
|
|
|
|
# codium to code
|
|
alias code="code-insiders"
|
|
alias c="code-insiders"
|
|
alias cn="code-insiders ."
|
|
|
|
# cd to z
|
|
alias cd="z"
|
|
|
|
alias gs='git status '
|
|
alias ga='git add '
|
|
alias gb='git branch '
|
|
alias gc='git commit'
|
|
alias gd='git diff'
|
|
alias gco='git checkout '
|
|
alias gk='gitk --all&'
|
|
alias gx='gitx --all'
|
|
|
|
alias got='git '
|
|
alias get='git '
|
|
|
|
|
|
# tabtab source for packages
|
|
# uninstall by removing these lines
|
|
[[ -f ~/.config/tabtab/zsh/__tabtab.zsh ]] && . ~/.config/tabtab/zsh/__tabtab.zsh || true
|
|
|
|
# bun completions
|
|
[ -s "/Users/rileysmith/.bun/_bun" ] && source "/Users/rileysmith/.bun/_bun"
|
|
|
|
# bun
|
|
export BUN_INSTALL="/Users/rileysmith/.bun"
|
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
|
|
|
# Path Stuff
|
|
export ANDROID_HOME=$HOME/Library/Android/sdk
|
|
export PATH=$PATH:$ANDROID_HOME/emulator
|
|
export PATH=$PATH:$ANDROID_HOME/platform-tools
|
|
export PATH=$PATH:$HOME/.new_local/bin
|
|
export PATH=/opt/homebrew/opt/mysql-client/bin:$PATH
|
|
export JAVA_HOME=`/usr/libexec/java_home -v 17.0.8`
|
|
|
|
# zoxide
|
|
eval "$(zoxide init zsh)"
|
|
|
|
# rbenv
|
|
eval "$(rbenv init - zsh)"
|
|
|
|
eval "$(starship init zsh)"
|
|
|
|
if [[ $TERM_PROGRAM != "WarpTerminal" ]]; then
|
|
test -e "${HOME}/.iterm2_shell_integration.zsh" && source "${HOME}/.iterm2_shell_integration.zsh"
|
|
fi
|
|
|
|
|
|
# (
|
|
# if ! ssh-add -l >/dev/null 2>&1; then
|
|
# ssh-add --apple-load-keychain >/dev/null 2>&1
|
|
# fi &
|
|
# )
|
|
#znap function _sshadd ssh 'eval "$(ssh-add --apple-load-keychain)"'
|
|
# compctl -K _sshadd ssh
|
|
|
|
source /Users/riley/.docker/init-zsh.sh || true # Added by Docker Desktop
|
|
|
|
export NVM_DIR="$HOME/.config/nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
export PATH=$PATH:/Users/riley/.spicetify
|