dotfiles/tools/link_env.sh

17 lines
390 B
Bash
Raw Normal View History

2023-01-03 19:05:51 +03:00
#!/bin/sh
set -e
2023-06-25 15:32:30 +03:00
NC='\033[0m'
Green='\033[1;32m'
ARROW="${Green}=>${NC}"
echo "$ARROW Linking zshrc"
2023-01-03 19:05:51 +03:00
if [ -f ~/.zshrc ]; then
echo "=> Moving old zshrc to ~/.zshrc.old"
mv ~/.zshrc ~/.zshrc.old
fi
2023-01-03 20:00:56 +03:00
ln -s ~/.env/dotfiles/env/.zshrc ~/.zshrc
2023-06-25 15:32:30 +03:00
echo "$ARROW Linking neovim files"
2023-01-03 19:05:51 +03:00
rm -rf ${XDG_CONFIG_HOME:-$HOME/.config}/nvim
ln -s ~/.env/dotfiles/nvim ${XDG_CONFIG_HOME:-$HOME/.config}/nvim