Mercurial > dotfiles.old
view oh-my-zsh/custom/themes/custom.zsh-theme @ 145:b3fd48f2df2c
Move brew related paths and aliases to local rc
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 14 Oct 2014 18:33:03 +0200 |
parents | 7a4e97f44baa |
children |
line wrap: on
line source
function get_pwd() { echo "${PWD/$HOME/~}" } eval my_gray='$FG[237]' eval my_orange='$FG[214]' local git=$(git_prompt_info) if [ ${#git} != 0 ]; then ((git=${#git} - 10)) else git=0 fi local my_prompt_name='%n' [[ "$SSH_CONNECTION" != '' ]] && my_prompt_name='%n@%m' 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$(git_prompt_info) $(git_prompt_status)%{$reset_color%}%' ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} U" ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} A" ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} D" ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} R" ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} M" ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} U" ZSH_THEME_GIT_PROMPT_PREFIX="${my_gray}" ZSH_THEME_GIT_PROMPT_CLEAN="" ZSH_THEME_GIT_PROMPT_DIRTY="%{$reset_color%}" ZSH_THEME_GIT_PROMPT_SUFFIX="$my_gray%{$reset_color%}"