summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfox <fox91@anche.no>2011-07-19 22:02:34 +0200
committerfox <fox91@anche.no>2011-07-19 22:02:34 +0200
commit5d5d2f94be7a13c3a5069bed6bfc2070fa7f014c (patch)
tree529a4193f1c4b10fee77b20bbf00d9e947c7c03d
parentfea4e54b1053764df10f507c233286281133fe90 (diff)
downloadzsh-5d5d2f94be7a13c3a5069bed6bfc2070fa7f014c.tar.gz
zsh-5d5d2f94be7a13c3a5069bed6bfc2070fa7f014c.tar.bz2
zsh-5d5d2f94be7a13c3a5069bed6bfc2070fa7f014c.zip
fox's theme + theme chooser fixes
-rw-r--r--themes/fox.zsh-theme8
-rwxr-xr-xtools/theme_chooser.sh6
2 files changed, 11 insertions, 3 deletions
diff --git a/themes/fox.zsh-theme b/themes/fox.zsh-theme
new file mode 100644
index 000000000..1959853cf
--- /dev/null
+++ b/themes/fox.zsh-theme
@@ -0,0 +1,8 @@
+#fox theme
+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)
+└> % %{$reset_color%}'
+
+ZSH_THEME_GIT_PROMPT_PREFIX="-[%{$reset_color%}%{$fg[white]%}git://%{$fg_bold[white]%}"
+ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}%{$fg[cyan]%}]-"
+ZSH_THEME_GIT_PROMPT_DIRTY=" %{$fg[red]%}✗%{$reset_color%}"
+ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%}✔%{$reset_color%}"
diff --git a/tools/theme_chooser.sh b/tools/theme_chooser.sh
index 2413bfee8..50f80f092 100755
--- a/tools/theme_chooser.sh
+++ b/tools/theme_chooser.sh
@@ -8,10 +8,10 @@
# http://sam.zoy.org/wtfpl/COPYING for more details.
THEMES_DIR="$ZSH/themes"
-FAVLIST="~/.zsh_favlist"
+FAVLIST="${HOME}/.zsh_favlist"
function noyes() {
- read -p "$1 [y/N]" a
+ read -p "$1 [y/N] " a
if [[ $a == "N" || $a == "n" || $a = "" ]]; then
return 0
fi
@@ -30,7 +30,7 @@ EOF
rm -rf "$ZDOTDIR"
echo
- noyes "Do you want to add it to your favourite list?" && \
+ noyes "Do you want to add it to your favourite list ($FAVLIST)?" || \
echo $THEME >> $FAVLIST
echo
}