Skip to content

Instantly share code, notes, and snippets.

@worace
Last active December 11, 2015 09:48
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 worace/4582248 to your computer and use it in GitHub Desktop.
Save worace/4582248 to your computer and use it in GitHub Desktop.
# tassilo's zsh from http://tsdh.wordpress.com/2007/12/06/my-funky-zsh-prompt/
# stashing this for reference for colors :)
local blue_op="%{$fg[blue]%}[%{$reset_color%}"
local blue_cp="%{$fg[blue]%}]%{$reset_color%}"
local path_p="${blue_op}%~${blue_cp}"
local user_host="${blue_op}%n@%m${blue_cp}"
local ret_status="${blue_op}%?${blue_cp}"
local hist_no="${blue_op}%h${blue_cp}"
local smiley="%(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color%})"
PROMPT="╭─${path_p}─${user_host}─${ret_status}─${hist_no}
╰─${blue_op}${smiley}${blue_cp} %# "
local cur_cmd="${blue_op}%_${blue_cp}"
PROMPT2="${cur_cmd}> "
PROMPT='%{$fg[yellow]%}%n %{$fg[red]%}@ %m / %{$fg[cyan]%}%c %{$fg[red]%}/ %{$fg[cyan]%}$(git_prompt_info) %{$fg[red]%}➸ �%{$reset_color%}'
ZSH_THEME_GIT_PROMPT_PREFIX=""
ZSH_THEME_GIT_PROMPT_SUFFIX=""
ZSH_THEME_GIT_PROMPT_DIRTY=""
ZSH_THEME_GIT_PROMPT_CLEAN=""
http://tsdh.wordpress.com/2007/12/06/my-funky-zsh-prompt/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment