浏览代码

Merge pull request #3353 from mizabrik/master

Save ZSH path in newly created .zshrc
Robby Russell 9 年之前
父节点
当前提交
d2667bd0a2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tools/install.sh

+ 2 - 2
tools/install.sh

@@ -23,8 +23,8 @@ 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
+sed -i -e "/^export ZSH=/ c\\
+export ZSH=$ZSH
 " ~/.zshrc
 
 echo "\033[0;34mCopying your current PATH and adding it to the end of ~/.zshrc for you.\033[0m"