Skip to content

Instantly share code, notes, and snippets.

@indrekj
Created June 23, 2009 16:28
Show Gist options
  • Save indrekj/134657 to your computer and use it in GitHub Desktop.
Save indrekj/134657 to your computer and use it in GitHub Desktop.
# Prompts
autoload colors ; colors
git_prompt_info() {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo " [${ref#refs/heads/}]"
}
PROMPT='%n@%m%{$fg[green]%}$(git_prompt_info)%{$fg_bold[blue]%} ~ %{$reset_color%}'
RPROMPT=' %~' # prompt for right side of screen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment