dotfiles/tools/link_env.sh
2023-06-25 15:32:30 +03:00

16 lines
390 B
Bash
Executable file

#!/bin/sh
set -e
NC='\033[0m'
Green='\033[1;32m'
ARROW="${Green}=>${NC}"
echo "$ARROW Linking zshrc"
if [ -f ~/.zshrc ]; then
echo "=> Moving old zshrc to ~/.zshrc.old"
mv ~/.zshrc ~/.zshrc.old
fi
ln -s ~/.env/dotfiles/env/.zshrc ~/.zshrc
echo "$ARROW Linking neovim files"
rm -rf ${XDG_CONFIG_HOME:-$HOME/.config}/nvim
ln -s ~/.env/dotfiles/nvim ${XDG_CONFIG_HOME:-$HOME/.config}/nvim