... | ... |
@@ -29,4 +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%}' |
|
32 |
+source "$ZSH/themes/$ZSH_THEME.zsh-theme" |
|
33 | 33 |
\ 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,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; |