2017-02-27 06:49:09 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
DOTFILES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
2017-03-28 21:01:03 +00:00
|
|
|
export DOTFILES_DIR
|
2017-02-27 06:49:09 +00:00
|
|
|
EXTRA_DIR="$HOME/.extra"
|
2017-03-28 21:01:03 +00:00
|
|
|
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
|
|
|
|
2017-09-20 04:56:39 +00:00
|
|
|
#local tools
|
|
|
|
mkdir -p ~/apps
|
2017-10-20 17:57:38 +00:00
|
|
|
|
2017-10-17 13:51:40 +00:00
|
|
|
### install packages
|
2018-10-16 05:40:31 +00:00
|
|
|
## sudo apt-get install -y -f python-pip python-dev powerline arandr
|
2017-10-17 13:51:40 +00:00
|
|
|
|
2017-12-06 14:49:56 +00:00
|
|
|
## install kryptonite
|
2018-10-16 05:40:31 +00:00
|
|
|
##curl https://krypt.co/kr | sh
|
2017-12-06 14:49:56 +00:00
|
|
|
|
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
|
2019-12-23 17:06:27 +00:00
|
|
|
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
|
2019-12-23 17:06:27 +00:00
|
|
|
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
|
2017-07-23 05:48:01 +00:00
|
|
|
|
2017-02-27 06:49:09 +00:00
|
|
|
# Bunch of symlinks
|
2019-12-23 17:06:27 +00:00
|
|
|
ln -sfv $PWD ~/.dotfiles
|
2017-02-27 21:08:11 +00:00
|
|
|
#ln -sfv "$DOTFILES_DIR/run/.bash_profile" ~
|
2019-12-23 17:06:27 +00:00
|
|
|
git clone https://github.com/nightsense/vimspectr.git ~/.vim/bundle/vimspectr
|
2017-11-19 02:50:40 +00:00
|
|
|
ln -sfv ~/.vim/bundle/vimspectr/shell ~/.vimspectr-shell
|
2017-09-06 05:19:27 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/run/.profile" ~
|
2017-09-13 18:48:44 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/run/.xprofile" ~
|
2017-02-27 21:08:11 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/run/.bashrc" ~
|
2018-10-16 05:40:31 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/.ssh/config.d" ~/.ssh/config.d
|
|
|
|
ln -sfv "$DOTFILES_DIR/.ssh/config" ~/.ssh/config
|
2018-05-29 19:47:29 +00:00
|
|
|
mkdir ~/bin
|
2017-12-12 04:57:35 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/system/.bruise" ~/bin/bruise
|
2018-05-29 19:47:29 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/.screenlayout" ~
|
2017-12-12 05:07:44 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/system/.keybrightness" ~/bin/keybrightness
|
2019-03-05 05:30:27 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/system/.notification_state" ~/bin/notification_state
|
2017-02-27 06:49:09 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/git/.gitconfig" ~
|
|
|
|
ln -sfv "$DOTFILES_DIR/system/.vimrc" ~
|
2017-03-27 16:00:13 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/system/.dir_colors" ~
|
2017-03-27 16:02:46 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/vim/bundle" ~/.vim/bundle
|
2017-08-16 02:57:12 +00:00
|
|
|
ln -sfv "$DOTFILES_DIR/.Xresources" ~/.Xresources
|
|
|
|
ln -sfv "$DOTFILES_DIR/.fehbg" ~/.fehbg
|
2017-08-16 02:56:04 +00:00
|
|
|
|
|
|
|
#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
|