chore(install): remove existing .zshrc if not a symlink

This commit is contained in:
2025-06-16 11:07:14 +02:00
parent aa5766d749
commit b9f51c970c

View File

@ -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)" sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
fi fi
if [ -f "$HOME/.zshrc" ] && [ ! -L "$HOME/.zshrc" ]; then
rm "$HOME/.zshrc"
fi
mkdir -p "$HOME/.ssh" mkdir -p "$HOME/.ssh"
echo "Include $HOME/.config/ssh/*" >> "$HOME/.ssh/config" echo "Include $HOME/.config/ssh/*" >> "$HOME/.ssh/config"