dotfiles/install.sh
2023-03-31 13:58:35 +03:00

24 lines
No EOL
557 B
Bash
Executable file

# change directory to the location of this script
cd "$(dirname "$0")"
# change default shell to zsh
chsh -s $(which zsh)
# create my folders
mkdir -p ~/Documents/GitHub
mkdir -p ~/Documents/temp
mkdir -p ~/Pictures/screenshots
mkdir -p ~/Documents/tempdir/old_config_files
link_file() {
if [ -f ~/$1 ]; then
mv ~/$1 ~/Documents/tempdir/old_config_files/$1
fi
ln -s src/$1 $2
}
link_file .zshrc ~
link_file .zprofile ~
link_file .gitconfig ~
link_file .config/i3-scrot.conf ~/.config
link_file .config/nitrogen/nitrogen.cfg ~/.config/nitrogen/