From b9f51c970c26498d0d1308d182e94500fe7196e6 Mon Sep 17 00:00:00 2001 From: Constantin Simonis Date: Mon, 16 Jun 2025 11:07:14 +0200 Subject: [PATCH] chore(install): remove existing .zshrc if not a symlink --- install | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install b/install index 9861462..3962653 100755 --- a/install +++ b/install @@ -34,6 +34,10 @@ if [ ! -d "$HOME/.oh-my-zsh" ]; then sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" fi +if [ -f "$HOME/.zshrc" ] && [ ! -L "$HOME/.zshrc" ]; then + rm "$HOME/.zshrc" +fi + mkdir -p "$HOME/.ssh" echo "Include $HOME/.config/ssh/*" >> "$HOME/.ssh/config"