Files
dotconfigs/dotconf.sh
T
2018-07-09 09:40:55 +02:00

22 lines
394 B
Bash

export DOTCONFDIR=~/.dotconfigs
function dotconf () {
case "$1" in
"setup")
ln -s $DOTCONFDIR/zsh/zshrc ~/.zshrc
ln -s $DOTCONFDIR/tmux/tmux.conf ~/.tmux.conf
ln -s $DOTCONFDIR/vim/vimrc ~/.vimrc
;;
"update")
OLDDIR="$(PWD)"
cd "$DOTCONFDIR" && git pull origin
cd "$OLDDIR"
;;
*)
echo "Usage: dotconf [setup|update]."
;;
esac
}