diff options
author | Jonathan Chang <31893406+cccntu@users.noreply.github.com> | 2020-02-25 03:39:10 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-24 20:39:10 +0100 |
commit | 0e57142729656bd0bd81a39704328330f9db4557 (patch) | |
tree | e8169f14b8c75d858c31c362e2de01d862ebd514 /tools/install.sh | |
parent | 40b013f5f119be27bd2fdece431cf4979193bd25 (diff) | |
download | zsh-0e57142729656bd0bd81a39704328330f9db4557.tar.gz zsh-0e57142729656bd0bd81a39704328330f9db4557.tar.bz2 zsh-0e57142729656bd0bd81a39704328330f9db4557.zip |
installer: remove redundant cp command (#8668)
Diffstat (limited to 'tools/install.sh')
-rwxr-xr-x | tools/install.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/install.sh b/tools/install.sh index ae248be89..bdf9f18e9 100755 --- a/tools/install.sh +++ b/tools/install.sh @@ -129,10 +129,9 @@ setup_zshrc() { echo "${GREEN}Using the Oh My Zsh template file and adding it to ~/.zshrc.${RESET}" - cp "$ZSH/templates/zshrc.zsh-template" ~/.zshrc sed "/^export ZSH=/ c\\ export ZSH=\"$ZSH\" -" ~/.zshrc > ~/.zshrc-omztemp +" "$ZSH/templates/zshrc.zsh-template" > ~/.zshrc-omztemp mv -f ~/.zshrc-omztemp ~/.zshrc echo |