dotfiles/install.sh

28 lines
487 B
Bash
Raw Normal View History

2020-09-08 15:25:32 -04:00
#!/bin/sh
mydir=$(dirname "$0")
mydir=$(realpath "$mydir")
if [ ! "$mydir" = "$HOME/dotfiles" ]; then
mv "$mydir" "$HOME/dotfiles"
mydir="$HOME/dotfiles"
fi
install() {
2020-09-24 09:10:58 -04:00
ln "$mydir/$1" "$HOME/.$1" -sf
2020-09-08 15:25:32 -04:00
}
installto() {
2020-09-24 09:10:58 -04:00
mkdir -p "$HOME/$2"
ln "$mydir/$1" "$HOME/$2/$1" -sf
2020-09-08 15:25:32 -04:00
}
install tmux.conf
install zshrc
2020-09-08 20:20:11 -04:00
install xinitrc
2021-08-05 16:37:38 -04:00
install Xmodmap
2020-09-08 20:20:11 -04:00
install wallpaper.png
2021-08-06 15:18:14 -04:00
install vimrc
2020-09-24 09:10:58 -04:00
installto picom.conf .config/picom
2021-08-05 16:37:38 -04:00
installto dunstrc .config/dunst
2021-01-13 17:51:58 -05:00
installto config.py .config/qutebrowser