5d5d2f94be7a13c3a5069bed6bfc2070fa7f014c

Author
fox <fox91@anche.no>
Committer
fox <fox91@anche.no>
Date

Message

fox's theme + theme chooser fixes

Diff

 1diff --git a/themes/fox.zsh-theme b/themes/fox.zsh-theme
 2new file mode 100644
 3index 0000000000000000000000000000000000000000..1959853cf10702ed9ca8c937c62e4b9de3d6e881
 4--- /dev/null
 5+++ b/themes/fox.zsh-theme
 6@@ -0,0 +1,8 @@
 7+#fox theme
 8+PROMPT='%{$fg[cyan]%}┌[%{$fg_bold[white]%}%n%{$reset_color%}%{$fg[cyan]%}☮%{$fg_bold[white]%}%M%{$reset_color%}%{$fg[cyan]%}]%{$fg[white]%}-%{$fg[cyan]%}(%{$fg_bold[white]%}%~%{$reset_color%}%{$fg[cyan]%})$(git_prompt_info)
 9+└> % %{$reset_color%}'
10+
11+ZSH_THEME_GIT_PROMPT_PREFIX="-[%{$reset_color%}%{$fg[white]%}git://%{$fg_bold[white]%}"
12+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}%{$fg[cyan]%}]-"
13+ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}"
14+ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}"
15diff --git a/tools/theme_chooser.sh b/tools/theme_chooser.sh
16index 2413bfee8979d6b0796242bd125b6921828617e2..50f80f09224eec28b8b61737785ef4ffa740c6d2 100755
17--- a/tools/theme_chooser.sh
18+++ b/tools/theme_chooser.sh
19@@ -8,10 +8,10 @@
20 # http://sam.zoy.org/wtfpl/COPYING for more details.
21 
22 THEMES_DIR="$ZSH/themes"
23-FAVLIST="~/.zsh_favlist"
24+FAVLIST="${HOME}/.zsh_favlist"
25 
26 function noyes() {
27-    read -p "$1 [y/N]" a
28+    read -p "$1 [y/N] " a
29     if [[ $a == "N" || $a == "n" || $a = "" ]]; then
30         return 0
31     fi
32@@ -30,7 +30,7 @@ EOF
33     rm -rf "$ZDOTDIR"
34 
35     echo
36-    noyes "Do you want to add it to your favourite list?" && \
37+    noyes "Do you want to add it to your favourite list ($FAVLIST)?" || \
38           echo $THEME >> $FAVLIST
39     echo
40 }