Skip to content

Instantly share code, notes, and snippets.

@notthetup
Created April 24, 2019 04:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save notthetup/fd00caa9cbb84d1ab6c42438c3748425 to your computer and use it in GitHub Desktop.
Save notthetup/fd00caa9cbb84d1ab6c42438c3748425 to your computer and use it in GitHub Desktop.
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