Last active
March 2, 2016 16:15
-
-
Save gbluma/5632ce29fc22ef6a7e69 to your computer and use it in GitHub Desktop.
A quick script for setting up *nix machines with my prefs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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