diff --git a/crates/10-zsh/crate.sh b/crates/10-zsh/crate.sh index e08f719..c67edb8 100644 --- a/crates/10-zsh/crate.sh +++ b/crates/10-zsh/crate.sh @@ -32,7 +32,7 @@ apply() { [ -d "$PL_DIR" ] || git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $PL_DIR fi - unlink $HOME/.zshrc + [ -f "$HOME/.zshrc" ] && unlink $HOME/.zshrc [ -e "$HOME/.zshrc" ] || ln files/.zshrc $HOME/.zshrc }