summaryrefslogtreecommitdiff
path: root/themes/funky.zsh-theme
diff options
context:
space:
mode:
authorGeoff Garside <geoff@geoffgarside.co.uk>2009-08-31 18:46:16 +0100
committerGeoff Garside <geoff@geoffgarside.co.uk>2009-08-31 18:46:16 +0100
commit857ec726c8a713db5dbff79e1d3b80ba08e02768 (patch)
tree91e17c9979e2108e6b53866a27ee1158a0b7750c /themes/funky.zsh-theme
parent3ab0d639d0f6feaf6612badd932542d206fc5450 (diff)
parenta19d1c0f53efbbc97eeaee4e496063abf7bf689d (diff)
downloadzsh-857ec726c8a713db5dbff79e1d3b80ba08e02768.tar.gz
zsh-857ec726c8a713db5dbff79e1d3b80ba08e02768.tar.bz2
zsh-857ec726c8a713db5dbff79e1d3b80ba08e02768.zip
Merge branch master
Diffstat (limited to 'themes/funky.zsh-theme')
-rw-r--r--themes/funky.zsh-theme14
1 files changed, 14 insertions, 0 deletions
diff --git a/themes/funky.zsh-theme b/themes/funky.zsh-theme
new file mode 100644
index 000000000..2451296d9
--- /dev/null
+++ b/themes/funky.zsh-theme
@@ -0,0 +1,14 @@
+# Taken from Tassilo's Blog
+# http://tsdh.wordpress.com/2007/12/06/my-funky-zsh-prompt/
+
+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}> " \ No newline at end of file