dotfiles/install.sh

45 lines
1.3 KiB
Bash
Raw Normal View History

2017-02-27 06:49:09 +00:00
#!/bin/bash
DOTFILES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
export DOTFILES_DIR
2017-02-27 06:49:09 +00:00
EXTRA_DIR="$HOME/.extra"
export EXTRA_DIR
2017-02-27 06:49:09 +00:00
# Update dotfiles itself first
2017-03-01 04:35:08 +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}
2017-03-27 04:54:10 +00:00
#install vundle
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
2017-02-27 06:49:09 +00:00
2017-07-23 05:48:01 +00:00
#Install pyenv
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
2017-02-27 06:49:09 +00:00
# Bunch of symlinks
ln -sfv ~/dotfiles ~/.dotfiles
#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" ~
ln -sfv "$DOTFILES_DIR/system/.dir_colors" ~
2017-03-27 16:02:46 +00:00
ln -sfv "$DOTFILES_DIR/vim/bundle" ~/.vim/bundle
ln -sfv "$DOTFILE_DIR/.Xresources" ~/.Xresources
#Clone wallpaper repo for pretty
git clone http://ahosking@git.ahoskingit.com/ahosking/wallpaper.git ~/wallpaper
2017-02-27 06:49:09 +00:00
2017-03-01 16:07:25 +00:00
# Link .config files
ln -sfv "$DOTFILES_DIR/config/terminator" ~/.config/
2017-03-27 16:08:10 +00:00
ln -sfv "$DOTFILES_DIR/.i3" ~
2017-03-01 16:07:25 +00:00
2017-03-27 04:59:39 +00:00
# Install Vundle Plugins
vim +PluginInstall +qall
2017-03-01 04:35:08 +00:00
# make .config directory for application specifics
2017-03-27 04:59:39 +00:00
cp -r config "$HOME/.config"
if [ ! -d "$HOME/.config" ]; then
mkdir "$HOME/.config"
fi