dotfiles/install.sh

64 lines
2.0 KiB
Bash
Raw Permalink 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
2017-09-20 04:56:39 +00:00
#local tools
mkdir -p ~/apps
2017-10-20 17:57:38 +00:00
### install packages
2021-12-19 06:41:18 +00:00
sudo apt-get install -y -f python3-pip python3-dev powerline arandr
sudo apt install -y -f vagrant
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
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-07-23 05:48:01 +00:00
2017-02-27 06:49:09 +00:00
# Bunch of symlinks
ln -sfv $PWD ~/.dotfiles
#ln -sfv "$DOTFILES_DIR/run/.bash_profile" ~
git clone https://github.com/nightsense/vimspectr.git ~/.vim/bundle/vimspectr
ln -sfv ~/.vim/bundle/vimspectr/shell ~/.vimspectr-shell
ln -sfv "$DOTFILES_DIR/run/.profile" ~
2017-09-13 18:48:44 +00:00
ln -sfv "$DOTFILES_DIR/run/.xprofile" ~
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
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" ~
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
#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