2017-06-30 16:54:24 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# Run this file just to setup symlinks for dotfiles
|
|
|
|
|
|
|
|
# colors for logging stuff
|
|
|
|
RED='\033[1;31m'
|
|
|
|
GREEN='\033[1;32m'
|
|
|
|
YELLOW='\033[1;33m'
|
|
|
|
NC='\033[0m'
|
|
|
|
BOLD='\033[1m'
|
|
|
|
|
2017-06-30 18:01:33 +00:00
|
|
|
DIR=$(pwd -L)
|
|
|
|
|
2017-07-07 01:01:56 +00:00
|
|
|
echo -e "\n${GREEN}linking config files...${NC}\n"
|
2017-06-30 16:54:24 +00:00
|
|
|
|
2022-12-22 19:49:56 +00:00
|
|
|
# System config
|
|
|
|
echo -e "\n\t${BOLD}System config...${NC}\n"
|
2022-12-22 20:00:39 +00:00
|
|
|
ln -sbv "$DIR/config/bash/bashrc" ~/.bashrc
|
|
|
|
ln -sbv "$DIR/config/bash/profile" ~/.bash_profile
|
2022-12-22 19:49:56 +00:00
|
|
|
ln -sbv "$DIR/config/inputrc" ~/.inputrc
|
2022-12-22 19:38:42 +00:00
|
|
|
ln -sbv "$DIR/config/fish" ~/.config/
|
2019-06-12 15:07:01 +00:00
|
|
|
|
|
|
|
# Text editor config
|
|
|
|
echo -e "\n\t${BOLD}Text editors...${NC}\n"
|
2022-12-22 19:49:56 +00:00
|
|
|
ln -sbv "$DIR/config/vimrc" ~/.vimrc
|
2022-12-22 19:19:40 +00:00
|
|
|
ln -sbv "$DIR/config/helix/config.toml" ~/.config/helix/config.toml
|
2023-11-19 17:10:13 +00:00
|
|
|
ln -sbv "$DIR/config/helix/languages.toml" ~/.config/helix/languages.toml
|
2022-12-22 19:19:40 +00:00
|
|
|
ln -sbv "$DIR/config/helix/themes/" ~/.config/helix/
|
2019-06-12 15:07:01 +00:00
|
|
|
|
2019-08-16 04:06:16 +00:00
|
|
|
# Terminal Config
|
|
|
|
echo -e "\n\t${BOLD}Terminal Emulator...${NC}\n"
|
2022-12-22 19:49:56 +00:00
|
|
|
ln -sbv "$DIR/config/alacritty.yml" ~/.alacritty.yml
|
2019-08-16 04:06:16 +00:00
|
|
|
|
2019-06-12 15:07:01 +00:00
|
|
|
# Git
|
|
|
|
echo -e "\n\t${BOLD}git...${NC}\n"
|
2022-12-22 19:52:44 +00:00
|
|
|
ln -sbv "$DIR/config/git/gitconfig" ~/.gitconfig
|
|
|
|
ln -sbv "$DIR/config/git/gitconfig.user" ~/.gitconfig.user
|
|
|
|
ln -sbv "$DIR/config/git/gitignore_global" ~/.gitignore_global
|
|
|
|
ln -sbv "$DIR/config/git/gitattributes_global" ~/.gitattributes_global
|
2019-06-12 15:07:01 +00:00
|
|
|
|
|
|
|
# e-mail
|
|
|
|
echo -e "\n\t${BOLD}email...${NC}\n"
|
|
|
|
ln -sbv "$DIR/mail/.mbsyncrc" ~
|
|
|
|
ln -sbv "$DIR/mail/.msmtprc" ~
|
|
|
|
ln -sbv "$DIR/mail/.notmuch-config" ~
|
|
|
|
ln -sbv "$DIR/mail/.afew-config" ~/.config/afew/config
|
|
|
|
ln -sbv "$DIR/service/checkmail.service" ~/.config/systemd/user/
|
|
|
|
ln -sbv "$DIR/service/checkmail.timer" ~/.config/systemd/user/
|