diff options
author | fox <fox91@anche.no> | 2011-07-24 20:51:27 +0200 |
---|---|---|
committer | fox <fox91@anche.no> | 2011-07-24 20:51:27 +0200 |
commit | d15d3a5b01a527d8642cc0b173a2f8d1b92332c0 (patch) | |
tree | 24e0bd55405e5321d703086336e25e7ed75c1aca /tools | |
parent | 76dd2d8b05cb1b8d34653732e8b3939f68e8a67a (diff) | |
download | zsh-d15d3a5b01a527d8642cc0b173a2f8d1b92332c0.tar.gz zsh-d15d3a5b01a527d8642cc0b173a2f8d1b92332c0.tar.bz2 zsh-d15d3a5b01a527d8642cc0b173a2f8d1b92332c0.zip |
global zsh config
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/theme_chooser.sh | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/theme_chooser.sh b/tools/theme_chooser.sh index af861a15b..ea5191afe 100755 --- a/tools/theme_chooser.sh +++ b/tools/theme_chooser.sh @@ -20,18 +20,19 @@ function noyes() { function theme_preview() { THEME=$1 + THEME_NAME=`echo $THEME | sed s/\.zsh-theme//` export ZDOTDIR="$(mktemp -d tmp.zshXXXX)" cat <<-EOF >"$ZDOTDIR/.zshrc" - source ~/.zshrc - source "$THEMES_DIR/$THEME" + ZSH_THEME="$THEME_NAME" + source $ZSH/oh-my-zsh.sh EOF zsh rm -rf "$ZDOTDIR" echo noyes "Do you want to add it to your favourite list ($FAVLIST)?" || \ - echo $THEME >> $FAVLIST + echo $THEME_NAME >> $FAVLIST echo } |