# Download Znap, if it's not there yet. [[ -r ~/Repos/znap/znap.zsh ]] || git clone --depth 1 -- \ https://github.com/marlonrichert/zsh-snap.git ~/repos/znap zstyle ':znap:*' repos-dir ~/repos/znap source ~/repos/zsh-snap/znap.zsh znap source marlonrichert/zsh-autocomplete zstyle ':autocomplete:*' min-input 2 znap source zsh-users/zsh-autosuggestions znap source zsh-users/zsh-completions export NVM_LAZY_LOAD=true export NVM_COMPLETION=true export NVM_AUTO_USE=true znap source lukechilds/zsh-nvm timezsh() { shell=${1-$SHELL} for i in $(seq 1 10); do /usr/bin/time $shell -i -c exit; done } # 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="eza" alias tree="eza --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 ' # 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 PATH=$PATH:/Users/riley/.spicetify eval "$(zoxide init zsh)" eval "$(starship init zsh)"