dotfiles/tools/link_env.sh

16 lines
403 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
2023-07-05 12:28:07 +03:00
TEA_GUM=$(cat /tmp/gum)
2023-06-25 15:32:30 +03:00
2023-07-05 11:59:24 +03:00
$TEA_GUM format "Linking \`.zshrc\`"
if [ -f $HOME/.zshrc ]; then
$TEA_GUM format "Moved old \`.zshrc\` to \`$HOME/.zshrc.old\`"
mv $HOME/.zshrc $HOME/.zshrc.old
2023-01-03 19:05:51 +03:00
fi
2023-07-05 11:59:24 +03:00
ln -s $HOME/.env/dotfiles/env/.zshrc $HOME/.zshrc
2023-07-05 12:15:37 +03:00
$TEA_GUM format "Linking neovim files"
2023-07-05 11:59:24 +03:00
rm -rf $HOME/.config/nvim
mkdir -p $HOME/.config/nvim
ln -s $HOME/.env/dotfiles/nvim $HOME/.config/nvim