浏览代码

Write install path into .zshrc

Andrew Vit 11 年之前
父节点
当前提交
2e11e2ab5a
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      tools/install.sh

+ 3 - 0
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\\