2017-02-27 06:49:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
export DOTFILES_DIR EXTRA_DIR
|
|
|
|
DOTFILES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
EXTRA_DIR="$HOME/.extra"
|
|
|
|
|
|
|
|
# Update dotfiles itself first
|
|
|
|
|
2017-02-27 21:08:11 +00:00
|
|
|
#[ -d "$DOTFILES_DIR/.git" ] && git --work-tree="$DOTFILES_DIR" --git-dir="$DOTFILES_DIR/.git" pull origin master
|
2017-02-27 06:49:09 +00:00
|
|
|
|
|
|
|
#vim backup folders
|
|
|
|
mkdir -p ~/.vim/{backup_files,swap_files,undo_files}
|
|
|
|
|
|
|
|
# Bunch of symlinks
|
2017-02-27 21:08:11 +00:00
|
|
|
#ln -sfv "$DOTFILES_DIR/run/.bash_profile" ~
|
|
|
|
ln -sfv "$DOTFILES_DIR/run/.bashrc" ~
|
2017-02-27 06:49:09 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/git/.gitconfig" ~
|
|
|
|
ln -sfv "$DOTFILES_DIR/system/.vimrc" ~
|
|
|
|
|