Browse code

Merge branch master

Geoff Garside authored on 31/08/2009 at 17:46:16
Showing 7 changed files
... ...
@@ -38,6 +38,7 @@ TODO: Update this..
38 38
 * 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.
39 39
 * ssh autocomplete: @ssh (tab)@ or @scp (tab)@
40 40
 * Git branch, it'll tell you which branch you're in when you're in a git repository directory.
41
+* Theme support: Change the @ZSH_THEME@ environment variable in @~/.zshrc@.
41 42
 * much much more..
42 43
 
43 44
 h2. Thanks
... ...
@@ -49,4 +50,7 @@ h2. Help out!
49 49
 
50 50
 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!
51 51
 
52
+h3. Send us your theme!
53
+
54
+I'm hoping to collect a bunch of themes for our command prompts. You can see existing ones in the @themes/@ directory.
52 55
 
... ...
@@ -29,5 +29,4 @@ setopt prompt_subst
29 29
 
30 30
 export LSCOLORS="Gxfxcxdxbxegedabagacad"
31 31
 
32
-# PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
33
-PROMPT='%m:%1/$(git_prompt_info) %n\$ '
32
+source "$ZSH/themes/$ZSH_THEME.zsh-theme"
34 33
new file mode 100644
... ...
@@ -0,0 +1,2 @@
0
+# Evan describes this sexy prompt as: "a skinny, topless prompt"
1
+PROMPT='%m :: %2~ %B»%b '
0 2
\ No newline at end of file
1 3
new file mode 100644
... ...
@@ -0,0 +1,5 @@
0
+# Found on the ZshWiki
1
+#  http://zshwiki.org/home/config/prompt
2
+#
3
+
4
+PROMPT="%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% "
0 5
\ No newline at end of file
1 6
new file mode 100644
... ...
@@ -0,0 +1,14 @@
0
+# Taken from Tassilo's Blog
1
+# http://tsdh.wordpress.com/2007/12/06/my-funky-zsh-prompt/
2
+
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}> "
0 14
\ No newline at end of file
1 15
new file mode 100644
... ...
@@ -0,0 +1 @@
0
+PROMPT='%{$fg_bold[red]%}➜ %{$fg_bold[green]%}%p %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$fg_bold[blue]%} % %{$reset_color%}'
... ...
@@ -1,6 +1,10 @@
1 1
 # Path to your oh-my-zsh configuration.
2 2
 export ZSH=$HOME/.oh-my-zsh
3 3
 
4
+# Set to the name theme to load.
5
+# Look in ~/.oh-my-zsh/themes/
6
+export ZSH_THEME="robbyrussell"
7
+
4 8
 # Load all of the config files in ~/oh-my-zsh that end in .zsh
5 9
 # TIP: Add files you don't want in git to .gitignore
6 10
 for i in $ZSH/*zsh; do source $i; done;