Skip to content

Instantly share code, notes, and snippets.

@gbluma
Last active March 2, 2016 16:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gbluma/5632ce29fc22ef6a7e69 to your computer and use it in GitHub Desktop.
Save gbluma/5632ce29fc22ef6a7e69 to your computer and use it in GitHub Desktop.
A quick script for setting up *nix machines with my prefs
#!/bin/sh
set -e
cd ~
# get tmux conf
if [ ! -f "~/.tmux.conf" ]; then
wget https://gist.githubusercontent.com/gbluma/3e7019299c0e14a7e438/raw/7ad1f6b05520ab7285be6c6878904efecbd4f158/tmux.conf
mv tmux.conf .tmux.conf
fi
# get vimrc
if [ ! -f "~/.vimrc" ]; then
wget https://gist.githubusercontent.com/gbluma/6801231/raw/af5d49e53169a2950ba14451a96507633ad0f51a/vimrc
mv vimrc .vimrc
fi
# get vim files
mkdir -p ~/.vim/colors
if [ ! -f "~/.vim/colors/grb256.vim" ]; then
cd ~/.vim/colors
wget https://raw.githubusercontent.com/garybernhardt/dotfiles/master/.vim/colors/ir_black.vim
wget https://raw.githubusercontent.com/garybernhardt/dotfiles/master/.vim/colors/grb4.vim
wget https://raw.githubusercontent.com/garybernhardt/dotfiles/master/.vim/colors/grb256.vim
cd -
fi
if [ ! -f "~/.vim/ftdetect/felix.vim" ]; then
cd ~/.vim/ftdetect
wget https://raw.githubusercontent.com/felix-lang/felix/master/src/misc/vim/ftdetect/felix.vim
wget https://raw.githubusercontent.com/felix-lang/felix/master/src/misc/vim/ftdetect/interscript.vim
cd -
fi
if [ ! -f "~/.vim/syntax/felix.vim" ]; then
cd ~/.vim/ftdetect
wget https://raw.githubusercontent.com/felix-lang/felix/master/src/misc/vim/syntax/felix.vim
wget https://raw.githubusercontent.com/felix-lang/felix/master/src/misc/vim/syntax/interscript.vim
cd -
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment