chore(install): remove existing .zshrc if not a symlink
This commit is contained in:
4
install
4
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"
|
||||
|
||||
|
Reference in New Issue
Block a user