Created
April 24, 2019 04:35
-
-
Save notthetup/fd00caa9cbb84d1ab6c42438c3748425 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if [ "x$OH_MY_ZSH_HG" = "x" ]; then | |
OH_MY_ZSH_HG="hg" | |
fi | |
function box_name { | |
[ -f ~/.box-name ] && cat ~/.box-name || hostname -s | |
} | |
local prompt_char="%(?,%{$fg[magenta]%}❯%{$reset_color%},%{$fg[red]%}❯%{$reset_color%})" | |
PROMPT='%{$fg[red]%}[%T]%{$fg[yellow]%}%n%{$fg[white]%}@%{$fg[green]%}$(box_name)%{$reset_color%}:%{$fg_bold[blue]%}${PWD/#$HOME/~}%{$reset_color%}$(git_prompt_info) ${prompt_char} ' | |
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[magenta]%}[" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}" | |
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[green]%}!%{$fg[magenta]%}]" | |
ZSH_THEME_GIT_PROMPT_UNTRACKED="]%{$fg[green]%}?" | |
ZSH_THEME_GIT_PROMPT_CLEAN="]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment