Initial commit.
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
export DOTCONFDIR=~/.dotconfigs
|
||||
|
||||
function dotconf () {
|
||||
case "$1" in
|
||||
"setup")
|
||||
ln -s $DOTCONFDIR/zsh/zshrc ~/.zshrc
|
||||
ln -s $DOTCONFDIR/tmux/tmux.conf ~/.tmux.conf
|
||||
;;
|
||||
|
||||
"update")
|
||||
OLDDIR="$(PWD)"
|
||||
cd $DOTCONFDIR && git pull origin
|
||||
cd "$OLDDIR"
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Usage: dotconf [setup|update]."
|
||||
;;
|
||||
esac
|
||||
}
|
||||
Reference in New Issue
Block a user