summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Chang <31893406+cccntu@users.noreply.github.com>2020-02-25 03:39:10 +0800
committerGitHub <noreply@github.com>2020-02-24 20:39:10 +0100
commit0e57142729656bd0bd81a39704328330f9db4557 (patch)
treee8169f14b8c75d858c31c362e2de01d862ebd514
parent40b013f5f119be27bd2fdece431cf4979193bd25 (diff)
downloadzsh-0e57142729656bd0bd81a39704328330f9db4557.tar.gz
zsh-0e57142729656bd0bd81a39704328330f9db4557.tar.bz2
zsh-0e57142729656bd0bd81a39704328330f9db4557.zip
installer: remove redundant cp command (#8668)
-rwxr-xr-xtools/install.sh3
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