dotfiles/tools/link_env.sh

11 lines
314 B
Bash

#!/bin/sh
echo "=> Linking zshrc"
if [ -f ~/.zshrc ]; then
echo "=> Moving old zshrc to ~/.zshrc.old"
mv ~/.zshrc ~/.zshrc.old
fi
ln -s ~/.env/dotfiles/.zshrc ~/.zshrc
echo "=> Linking neovim files"
rm -rf ${XDG_CONFIG_HOME:-$HOME/.config}/nvim
ln -s ~/.env/dotfiles/nvim ${XDG_CONFIG_HOME:-$HOME/.config}/nvim