Browse code

Add: new theme

kphoen authored on 07/03/2011 at 14:15:46
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,50 @@
0
+# ------------------------------------------------------------------------------
1
+#          FILE:  kphoen.zsh-theme
2
+#   DESCRIPTION:  oh-my-zsh theme file.
3
+#        AUTHOR:  Kévin Gomez (geek63@gmail.com)
4
+#       VERSION:  1.0.0
5
+#    SCREENSHOT:
6
+# ------------------------------------------------------------------------------
7
+
8
+
9
+if [[ "$TERM" != "dumb" ]] && [[ "$DISABLE_LS_COLORS" != "true" ]]; then
10
+    PROMPT='[%{$fg[red]%}%n%{$reset_color%}@%{$fg[magenta]%}%m%{$reset_color%}:%{$fg[blue]%}%~%{$reset_color%}$(git_prompt_info)]
11
+%# '
12
+
13
+    ZSH_THEME_GIT_PROMPT_PREFIX=" on %{$fg[green]%}"
14
+    ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
15
+    ZSH_THEME_GIT_PROMPT_DIRTY=""
16
+    ZSH_THEME_GIT_PROMPT_CLEAN=""
17
+
18
+    # display exitcode on the right when >0
19
+    return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
20
+
21
+    RPROMPT='${return_code}$(git_prompt_status)%{$reset_color%}'
22
+
23
+    ZSH_THEME_GIT_PROMPT_ADDED="%{$fg[green]%} ✚"
24
+    ZSH_THEME_GIT_PROMPT_MODIFIED="%{$fg[blue]%} ✹"
25
+    ZSH_THEME_GIT_PROMPT_DELETED="%{$fg[red]%} ✖"
26
+    ZSH_THEME_GIT_PROMPT_RENAMED="%{$fg[magenta]%} ➜"
27
+    ZSH_THEME_GIT_PROMPT_UNMERGED="%{$fg[yellow]%} ═"
28
+    ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[cyan]%} ✭"
29
+else
30
+    PROMPT='[%n@%m:%~$(git_prompt_info)]
31
+%# '
32
+
33
+    ZSH_THEME_GIT_PROMPT_PREFIX=" on"
34
+    ZSH_THEME_GIT_PROMPT_SUFFIX=""
35
+    ZSH_THEME_GIT_PROMPT_DIRTY=""
36
+    ZSH_THEME_GIT_PROMPT_CLEAN=""
37
+
38
+    # display exitcode on the right when >0
39
+    return_code="%(?..%? ↵)"
40
+
41
+    RPROMPT='${return_code}$(git_prompt_status)'
42
+
43
+    ZSH_THEME_GIT_PROMPT_ADDED=" ✚"
44
+    ZSH_THEME_GIT_PROMPT_MODIFIED=" ✹"
45
+    ZSH_THEME_GIT_PROMPT_DELETED=" ✖"
46
+    ZSH_THEME_GIT_PROMPT_RENAMED=" ➜"
47
+    ZSH_THEME_GIT_PROMPT_UNMERGED=" ═"
48
+    ZSH_THEME_GIT_PROMPT_UNTRACKED=" ✭"
49
+fi