Skip to content

Instantly share code, notes, and snippets.

@grantvanhorn
Created March 27, 2021 21:29
Show Gist options
  • Save grantvanhorn/d97bb3302f354bf7c93fce7a38c02e90 to your computer and use it in GitHub Desktop.
Save grantvanhorn/d97bb3302f354bf7c93fce7a38c02e90 to your computer and use it in GitHub Desktop.
my zsh config
setopt PROMPT_SUBST
autoload -Uz vcs_info
alias updatezsh='source ~/.zshrc'
alias l='colorls --group-directories-first --almost-all'
alias ll='colorls --group-directories-first --almost-all --long'
source $(dirname $(gem which colorls))/tab_complete.sh
## Uses the zsh precmd function hook to set the tab title to the current working directory before each prompt
function precmd() {
window_title="\\033]0;${PWD##*/}\\007"
echo -ne "$window_t/itle"
vcs_info
}
zstyle ':vcs_info:git:*' formats '%F{125}[ %b] '
PROMPT='%F{129} %c %f$vcs_info_msg_0_%F{129}»%f '
## tabtab source for packages
## uninstall by removing these lines
[[ -f ~/.config/tabtab/__tabtab.zsh ]] && . ~/.config/tabtab/__tabtab.zsh || true
autoload -U +X bashcompinit && bashcompinit
# command exists dynamic syntax highlighting
source /usr/local/share/zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
export NVM_DIR="$HOME/.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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment