Smaller fixes to dotconf.sh.
This commit is contained in:
+8
-7
@@ -7,18 +7,19 @@ function dotconf () {
|
|||||||
ln -s $DOTCONFDIR/tmux/tmux.conf ~/.tmux.conf
|
ln -s $DOTCONFDIR/tmux/tmux.conf ~/.tmux.conf
|
||||||
ln -s $DOTCONFDIR/vim/vimrc ~/.vimrc
|
ln -s $DOTCONFDIR/vim/vimrc ~/.vimrc
|
||||||
|
|
||||||
# setup spacemacs
|
# setup spacemacs
|
||||||
if [ -d ~/.emacs.d ]; then
|
if [ -d ~/.emacs.d ]; then
|
||||||
echo "Backing up .emacs.d ..."
|
echo "Backing up .emacs.d ..."
|
||||||
mv ~/.emacs.d ~/.emacs.d.bak
|
mv ~/.emacs.d ~/.emacs.d.bak
|
||||||
fi
|
fi
|
||||||
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
|
git clone https://github.com/syl20bnr/spacemacs ~/.emacs.d
|
||||||
ln -s $DOTCONFDIR/emacs/spacemacs ~/.spacemacs
|
ln -s $DOTCONFDIR/emacs/spacemacs ~/.spacemacs
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"update")
|
"update")
|
||||||
OLDDIR="$(PWD)"
|
OLDDIR="$(pwd)"
|
||||||
cd "$DOTCONFDIR" && git pull origin
|
cd "$DOTCONFDIR" && git pull origin
|
||||||
|
source dotconf.sh
|
||||||
cd "$OLDDIR"
|
cd "$OLDDIR"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user