Skip to content

Instantly share code, notes, and snippets.

@elliotwesoff
Created November 8, 2016 17:12
Show Gist options
  • Save elliotwesoff/fb8f3ccb63f79ad195f8798ba21d6fdf to your computer and use it in GitHub Desktop.
Save elliotwesoff/fb8f3ccb63f79ad195f8798ba21d6fdf to your computer and use it in GitHub Desktop.
Script to quickly setup necessary tools for a Linux dev environment.
#!/bin/bash
function process_failed {
echo "${1} didn't download correctly"
}
# download vimrc and add to system vimrc
# wget -O ~/.vimrc https://gist.githubusercontent.com/elliotwesoff/f34e786b07209c5e25d4d1f650609771/raw/3c2939e9625ca9f890757be05819a563f57059e7/vimrc
if [ "$?" -eq 1 ]; then process_failed vimrc; else echo vimrc OK; fi
# install pathogen
if ! [ -e ~/.vim/autoload/pathogen.vim ]; then
echo Installing pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSo ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim;
if [ "$?" -eq 0 ]; then
# check for and install nerdtree
# 3. check for and install nerdcommenter
# 4. check for and install ctrl+p;
else
process_failed "pathogen, nerdtree, nerdcommenter, ctrl+p";
fi
fi
# 8. check for and install tmux
# 5. set git color to on
# 6. set git aliases
# 7. change tmux ctrl+b to ctrl+v
# 9. install vim-fugitive (for git blame)
# 10. install ack
# 11. install ack for vim
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment