Skip to content

Instantly share code, notes, and snippets.

@buren buren/zsh-git-prompt
Last active Aug 29, 2015

What would you like to do?
# Shameless steal from
# 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
You can’t perform that action at this time.