Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@reecefowell
Last active August 12, 2016 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save reecefowell/fb52c6daf4d89baea2dc9533b0e3d894 to your computer and use it in GitHub Desktop.
Save reecefowell/fb52c6daf4d89baea2dc9533b0e3d894 to your computer and use it in GitHub Desktop.
Make Oh-my-zsh + Agnoster theme run faster with git prompts

Edit ~/.zshrc and uncomment the following line DISABLE_UNTRACKED_FILES_DIRTY="true"

add this to projects mounted over NFS git config --add oh-my-zsh.hide-status 1

also, you could edit ~/.oh-my-zsh/plugins/gitfast/gitfast.plugin.zsh but changes might potentially be lost in udpates

function git_prompt_info() {
  ref=$(git symbolic-ref HEAD 2> /dev/null) || return
  echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment