support %2~

This commit is contained in:
Daniel YC Lin 2013-08-06 18:14:47 +08:00
commit 089cab61e3

View file

@ -14,9 +14,7 @@ THEMES_DIR="${1:-$HOME/.oh-my-zsh/themes}"
for f in $THEMES_DIR/*.zsh-theme ; do
echo -n "$(basename $f .zsh-theme) "
grep -q '%?' $f && echo -n "code "
grep -q 'VCS' $f && echo -n "vcs "
grep -q 'vcs_info' $f && echo -n "vcs_info "
grep -q 'vcs_info_msg' $f && echo -n "vcs_info_msg "
grep -q '%D' $f && echo -n "date "
grep -q 'GIT' $f && echo -n "git "
grep -q '%!' $f && echo -n "hist "
grep -q '%h' $f && echo -n "hist "
@ -27,11 +25,16 @@ for f in $THEMES_DIR/*.zsh-theme ; do
grep -q '%y' $f && echo -n "line "
grep -q '%M' $f && echo -n "machine "
grep -q '%~' $f && echo -n "path "
grep -q '%2~' $f && echo -n "path2 "
grep -q 'precmd' $f && echo -n "precmd "
grep -q 'RPROMPT' $f && echo -n "rprompt "
grep -q '%S' $f && echo -n "sec "
grep -q 'SVN' $f && echo -n "svn "
grep -q '%l' $f && echo -n "tty "
grep -q '%n' $f && echo -n "user "
grep -q '%D' $f && echo -n "date "
grep -q 'VCS' $f && echo -n "vcs "
grep -q 'vcs_info' $f && echo -n "vcs_info "
grep -q 'vcs_info_msg' $f && echo -n "vcs_info_msg "
echo ""
done
# vim:et sw=2 ts=2 ai