2022-07-04 16:06:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# script that (re)links all dotfiles during the installation or upgrade.
|
|
|
|
# do not run manually
|
|
|
|
|
|
|
|
GREEN="\033[32m"
|
2022-07-05 08:15:27 +03:00
|
|
|
CLEAR_COLOR="\033[0m"
|
2022-07-04 16:06:23 +03:00
|
|
|
|
2022-07-09 18:23:31 +03:00
|
|
|
mkdir -p $HOME/.config/nvim $HOME/.config/alacritty >/dev/null 2>&1
|
2022-07-04 16:06:23 +03:00
|
|
|
rm $HOME/.zshrc $HOME/.config/nvim/init.vim >/dev/null 2>&1
|
2022-07-09 17:46:01 +03:00
|
|
|
ln -s $HOME/.dotfiles/configs/zshrc $HOME/.zshrc
|
|
|
|
echo "${GREEN}.zshrc linked: $CLEAR_COLOR$HOME/.dotfiles/configs/zshrc $GREEN-> $CLEAR_COLOR$HOME/.zshrc"
|
2022-07-09 18:23:31 +03:00
|
|
|
ln -s $HOME/.dotfiles/configs/nvim.vim $HOME/.config/nvim/init.vim
|
2022-07-09 17:46:01 +03:00
|
|
|
echo "${GREEN}neovim config linked: $CLEAR_COLOR$HOME/.dotfiles/configs/nvim.vim $GREEN-> $CLEAR_COLOR$HOME/.config/nvim/init.vim"
|
2022-07-09 18:23:31 +03:00
|
|
|
ln -s $HOME/.dotfiles/configs/alacritty.yml $HOME/.config/alacritty/alacritty.yml
|
2022-07-09 18:26:07 +03:00
|
|
|
echo "${GREEN}alacritty config linked: $CLEAR_COLOR$HOME/.dotfiles/configs/alacritty.yml $GREEN-> $CLEAR_COLOR$HOME/.config/alacritty/alacritty.yml"
|