From 1ae541027e0d032d44fcf4c9dd50d33955e0ae3e Mon Sep 17 00:00:00 2001 From: Raine Date: Sat, 14 Oct 2023 22:38:15 +0200 Subject: [PATCH] fix: unlink cmd --- crates/10-zsh/crate.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }