funky.zsh-theme 601 B

1234567891011121314
  1. # Taken from Tassilo's Blog
  2. # http://tsdh.wordpress.com/2007/12/06/my-funky-zsh-prompt/
  3. local blue_op="%{$fg[blue]%}[%{$reset_color%}"
  4. local blue_cp="%{$fg[blue]%}]%{$reset_color%}"
  5. local path_p="${blue_op}%~${blue_cp}"
  6. local user_host="${blue_op}%n@%m${blue_cp}"
  7. local ret_status="${blue_op}%?${blue_cp}"
  8. local hist_no="${blue_op}%h${blue_cp}"
  9. local smiley="%(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color%})"
  10. PROMPT="╭─${path_p}─${user_host}─${ret_status}─${hist_no}
  11. ╰─${blue_op}${smiley}${blue_cp} %# "
  12. local cur_cmd="${blue_op}%_${blue_cp}"
  13. PROMPT2="${cur_cmd}> "