dotfiles/install
Josh Sherman d929676725
[vim] got rid of directory
Kind of flattening where I can, since I don't house anything in the vim
directory except my rc files these days, there's no reason to have it as
part of the repo
2017-12-23 17:32:56 -06:00

44 lines
1 KiB
Bash
Executable file

#!/usr/bin/env bash
if [ -z "$HOME" ]; then echo "Seems you're \$HOMEless :("; exit 1; fi
DOTFILES=$HOME/.dotfiles
cd $HOME
rm -rf $DOTFILES
mkdir $DOTFILES
cd $DOTFILES
git init
git remote add origin git@github.com:joshtronic/dotfiles.git
git pull origin master
git submodule update --init --recursive
rm -rf \
$HOME/.config/gtk-3.0/gtk.css \
$HOME/.gemrc \
$HOME/.gitconfig \
$HOME/.mongorc.js \
$HOME/.screenrc \
$HOME/.vim \
$HOME/.vimrc \
$HOME/.zshrc
ln -s $DOTFILES/gemrc $HOME/.gemrc
ln -s $DOTFILES/gitconfig $HOME/.gitconfig
ln -s $DOTFILES/gtk.css $HOME/.config/gtk-3.0/gtk.css
ln -s $DOTFILES/mongorc.js $HOME/.mongorc.js
ln -s $DOTFILES/screenrc $HOME/.screenrc
ln -s $DOTFILES/vimrc $HOME/.vimrc
ln -s $DOTFILES/zshrc $HOME/.zshrc
mkdir -p \
~/.local/share/vim/{swap,undo} \
~/.vim/pack/plugins/start
git clone https://github.com/w0rp/ale.git ~/.vim/pack/plugins/start/ale
git clone https://github.com/junegunn/fzf.vim.git ~/.vim/pack/plugins/start/fzf
cd $HOME
rm -f $HOME/.zcompdump*
exec zsh