Diff
1diff --git a/README.textile b/README.textile
2index fdfb6afae666e719fe173dc698eba193697903ac..f09feec0e1e0412bdff9da4d240c6353de3c10f3 100644
3--- a/README.textile
4+++ b/README.textile
5@@ -38,6 +38,7 @@ TODO: Update this..
6 * Rake autocomplete: @rake (tab)@. Will generate a cache of all your rake tasks and then let you auto-complete and/or select the task to run.
7 * ssh autocomplete: @ssh (tab)@ or @scp (tab)@
8 * Git branch, it'll tell you which branch you're in when you're in a git repository directory.
9+* Theme support: Change the @ZSH_THEME@ environment variable in @~/.zshrc@.
10 * much much more..
11
12 h2. Thanks
13@@ -49,4 +50,7 @@ h2. Help out!
14
15 I'm far from being a zsh-expert and suspect there are many ways to improve. If you have ideas on how to make the configuration easier to maintain (and faster), don't hesitate to fork and send pull requests!
16
17+h3. Send us your theme!
18+
19+I'm hoping to collect a bunch of themes for our command prompts. You can see existing ones in the @themes/@ directory.
20
21diff --git a/prompt.zsh b/prompt.zsh
22index d191af7f54f2ee015d56b875e61c11d8f0964999..31c33feb5e56d0fd89830a862226481afab803d5 100644
23--- a/prompt.zsh
24+++ b/prompt.zsh
25@@ -29,5 +29,4 @@ setopt prompt_subst
26
27 export LSCOLORS="Gxfxcxdxbxegedabagacad"
28
29-# PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
30-PROMPT='%m:%1/$(git_prompt_info) %n\$ '
31+source "$ZSH/themes/$ZSH_THEME.zsh-theme"
32diff --git a/themes/evan.zsh-theme b/themes/evan.zsh-theme
33new file mode 100644
34index 0000000000000000000000000000000000000000..5ef1f40dde71e772aab2663f0073915302b104dd
35--- /dev/null
36+++ b/themes/evan.zsh-theme
37@@ -0,0 +1,2 @@
38+# Evan describes this sexy prompt as: "a skinny, topless prompt"
39+PROMPT='%m :: %2~ %B»%b '
40diff --git a/themes/example.zsh-theme b/themes/example.zsh-theme
41new file mode 100644
42index 0000000000000000000000000000000000000000..dbd9dc9c97f034f8e43252af5d697d62cc1850fa
43--- /dev/null
44+++ b/themes/example.zsh-theme
45@@ -0,0 +1,5 @@
46+# Found on the ZshWiki
47+# http://zshwiki.org/home/config/prompt
48+#
49+
50+PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "
51diff --git a/themes/funky.zsh-theme b/themes/funky.zsh-theme
52new file mode 100644
53index 0000000000000000000000000000000000000000..2451296d916ff5d92be1fab3c5cfa906620428a2
54--- /dev/null
55+++ b/themes/funky.zsh-theme
56@@ -0,0 +1,14 @@
57+# Taken from Tassilo's Blog
58+# http://tsdh.wordpress.com/2007/12/06/my-funky-zsh-prompt/
59+
60+local blue_op="%{$fg[blue]%}[%{$reset_color%}"
61+local blue_cp="%{$fg[blue]%}]%{$reset_color%}"
62+local path_p="${blue_op}%~${blue_cp}"
63+local user_host="${blue_op}%n@%m${blue_cp}"
64+local ret_status="${blue_op}%?${blue_cp}"
65+local hist_no="${blue_op}%h${blue_cp}"
66+local smiley="%(?,%{$fg[green]%}:%)%{$reset_color%},%{$fg[red]%}:(%{$reset_color%})"
67+PROMPT="╭─${path_p}─${user_host}─${ret_status}─${hist_no}
68+╰─${blue_op}${smiley}${blue_cp} %# "
69+local cur_cmd="${blue_op}%_${blue_cp}"
70+PROMPT2="${cur_cmd}> "
71diff --git a/themes/robbyrussell.zsh-theme b/themes/robbyrussell.zsh-theme
72new file mode 100644
73index 0000000000000000000000000000000000000000..d45796f7c7df793ed7b2aaf471cc9f9b3b90cc1c
74--- /dev/null
75+++ b/themes/robbyrussell.zsh-theme
76@@ -0,0 +1 @@
77+PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
78diff --git a/zshrc b/zshrc
79index d5c00d6df164beba20dfdbcc662121464d250667..2e2a33d9b37d89d34b0640d5c1d7b0d4df58af4a 100644
80--- a/zshrc
81+++ b/zshrc
82@@ -1,6 +1,10 @@
83 # Path to your oh-my-zsh configuration.
84 export ZSH=$HOME/.oh-my-zsh
85
86+# Set to the name theme to load.
87+# Look in ~/.oh-my-zsh/themes/
88+export ZSH_THEME="robbyrussell"
89+
90 # Load all of the config files in ~/oh-my-zsh that end in .zsh
91 # TIP: Add files you don't want in git to .gitignore
92 for i in $ZSH/*zsh; do source $i; done;