Skip to content

Instantly share code, notes, and snippets.

@buren
Last active August 29, 2015 13:55
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 buren/8780844 to your computer and use it in GitHub Desktop.
Save buren/8780844 to your computer and use it in GitHub Desktop.
zsh-git-prompt
# Shameless steal from http://askubuntu.com/a/85111
# git branch in zsh-prompt
echo '
autoload -Uz vcs_info
precmd () { vcs_info }
setopt prompt_subst
PS1="\$vcs_info_msg_0_$PS1"' >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment