summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorAndrew Vit <andrew@avit.ca>2014-03-08 13:15:18 -0800
committerAndrew Vit <andrew@avit.ca>2014-03-08 13:16:46 -0800
commit2e11e2ab5adaea762b7f2eaa6c63332a9618bb3f (patch)
tree507919cd5c9192148a110f41c9e8c16a1d67a90d /tools
parent5bd590ceb30ca58d96ec8d5dcfc1fec71bc6ca1f (diff)
downloadzsh-2e11e2ab5adaea762b7f2eaa6c63332a9618bb3f.tar.gz
zsh-2e11e2ab5adaea762b7f2eaa6c63332a9618bb3f.tar.bz2
zsh-2e11e2ab5adaea762b7f2eaa6c63332a9618bb3f.zip
Write install path into .zshrc
Diffstat (limited to 'tools')
-rwxr-xr-xtools/install.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/install.sh b/tools/install.sh
index 01984ea2b..5c7a5b6ca 100755
--- a/tools/install.sh
+++ b/tools/install.sh
@@ -24,6 +24,9 @@ fi
echo "\033[0;34mUsing the Oh My Zsh template file and adding it to ~/.zshrc\033[0m"
cp $ZSH/templates/zshrc.zsh-template ~/.zshrc
+sed -i -e "/^ZSH=/ c\\
+ZSH=$ZSH
+" ~/.zshrc
echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.\033[0m"
sed -i -e "/export PATH=/ c\\