dotfiles/install.sh

22 lines
318 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() {
ln "$mydir/$1" "$HOME/.$1" -f
}
installto() {
ln "$mydir/$1" "$2" -f
}
install tmux.conf
install zshrc
2020-09-08 20:20:11 -04:00
install xinitrc
install wallpaper.png