dotfiles/setup.sh

42 lines
888 B
Bash
Raw Normal View History

2020-05-03 13:24:28 -04:00
#!/usr/bin/env sh
2020-08-08 18:10:04 -04:00
echo "This script will clobber existing links and files."
echo "Press Control C in the next 5 seconds to abort"
for x in 5 4 3 2 1 ; do
printf "%s." "$x"
sleep 1
done
echo clobbering linked files!
IAM="$(realpath $(dirname $0))"
2020-08-08 15:10:18 -04:00
mkdir -p ~/.config
2020-05-03 13:24:28 -04:00
mkdir -p ~/.bin
2020-08-08 15:10:18 -04:00
# shell dotfiles
2020-08-08 18:10:04 -04:00
ln -fns $IAM/profilevars ~/.profile
ln -fns $IAM/zlogin ~/.zlogin
ln -fns $IAM/zshrc ~/.zshrc
ln -fns $IAM/bashrc ~/.bashrc
ln -fns $IAM/bash_profile ~/.bash_profile
# editor dotfiles
2020-08-08 18:10:04 -04:00
ln -fns $IAM/emacs.d ~/.emacs.d
ln -fns $IAM/vimrc ~/.vimrc
2020-08-08 15:10:18 -04:00
# X dotfiles
2020-08-08 18:10:04 -04:00
ln -fns $IAM/xinitrc ~/.xinitrc
ln -fns $IAM/xmodmap ~/.xmodmap
ln -fns $IAM/xprofile ~/.xprofile
# WM/DE dotfiles
2020-08-08 18:10:04 -04:00
ln -fns $IAM/i3 ~/.config/i3
ln -fns $IAM/i3status ~/.config/i3status
ln -fns $IAM/qt5ct ~/.config/qt5ct
2020-08-08 15:10:18 -04:00
# misc dotfiles
2020-08-08 18:10:04 -04:00
ln -fns $IAM/gitconfig ~/.gitconfig
2020-08-08 15:10:18 -04:00
# tasks
2020-05-03 13:24:28 -04:00
emacs --script install-packages.el