Skip to content

Instantly share code, notes, and snippets.

@zegervdv
Last active December 18, 2015 06:39
Show Gist options
  • Save zegervdv/0b302ddd5b302da24027 to your computer and use it in GitHub Desktop.
Save zegervdv/0b302ddd5b302da24027 to your computer and use it in GitHub Desktop.
eval my_gray='$FG[237]'
eval my_orange='$FG[214]'
function get_pwd() {
echo "${PWD/$HOME/~}"
}
local my_prompt_name='%n'
PROMPT='%{$fg[cyan]%}$my_prompt_name%{$reset_color%} in %{$fg[yellow]%}%~%b%{$reset_color%}
%{$reset_color%}%(1j.%j .)%(?.%{$fg[white]%}.%{$fg[red]%})» %{$reset_color%}'
RPROMPT='$my_gray on $(hg prompt "%{$fg[blue]%}{branch} %{$fg[cyan]%}{status} %{$fg[green]%}{-{incoming|count}} %{$fg[red]%}{+{outgoing|count}}" 2> /dev/null)%{$reset_color%}%'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment