1
0
Fork 0
mirror of https://github.com/ohmyzsh/ohmyzsh.git synced 2024-11-22 05:40:08 +00:00

fox's theme + theme chooser fixes

This commit is contained in:
fox 2011-07-19 22:02:34 +02:00
parent fea4e54b10
commit 5d5d2f94be
2 changed files with 11 additions and 3 deletions

8
themes/fox.zsh-theme Normal file
View file

@ -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%}"

View file

@ -8,10 +8,10 @@
# http://sam.zoy.org/wtfpl/COPYING for more details. # http://sam.zoy.org/wtfpl/COPYING for more details.
THEMES_DIR="$ZSH/themes" THEMES_DIR="$ZSH/themes"
FAVLIST="~/.zsh_favlist" FAVLIST="${HOME}/.zsh_favlist"
function noyes() { function noyes() {
read -p "$1 [y/N]" a read -p "$1 [y/N] " a
if [[ $a == "N" || $a == "n" || $a = "" ]]; then if [[ $a == "N" || $a == "n" || $a = "" ]]; then
return 0 return 0
fi fi
@ -30,7 +30,7 @@ EOF
rm -rf "$ZDOTDIR" rm -rf "$ZDOTDIR"
echo 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 $THEME >> $FAVLIST
echo echo
} }