0e57142729656bd0bd81a39704328330f9db4557
- Author
- Jonathan Chang <31893406+cccntu@users.noreply.github.com>
- Committer
- GitHub <noreply@github.com>
- Date
Message
installer: remove redundant cp command (#8668)
Diff
1diff --git a/tools/install.sh b/tools/install.sh
2index ae248be89a64300a5275c7950e9d7714bb75f173..bdf9f18e9a16fb6cff4252ca20a78ae8285e11a7 100755
3--- a/tools/install.sh
4+++ b/tools/install.sh
5@@ -129,10 +129,9 @@ setup_zshrc() {
6
7 echo "${GREEN}Using the Oh My Zsh template file and adding it to ~/.zshrc.${RESET}"
8
9- cp "$ZSH/templates/zshrc.zsh-template" ~/.zshrc
10 sed "/^export ZSH=/ c\\
11 export ZSH=\"$ZSH\"
12-" ~/.zshrc > ~/.zshrc-omztemp
13+" "$ZSH/templates/zshrc.zsh-template" > ~/.zshrc-omztemp
14 mv -f ~/.zshrc-omztemp ~/.zshrc
15
16 echo