dotfiles/tools/link_env.sh
2023-07-05 14:32:17 +03:00

16 lines
427 B
Bash
Executable file

#!/bin/sh
set -e
TEA_GUM=$HOME/.env/tea/charm.sh/gum/v\*/bin/gum
$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
fi
ln -s $HOME/.env/dotfiles/env/.zshrc $HOME/.zshrc
$TEA_GUM format "Linking neovim files"
rm -rf $HOME/.config/nvim
mkdir -p $HOME/.config/nvim
ln -s $HOME/.env/dotfiles/nvim $HOME/.config/nvim