#iTerm, Bash, Vim, and Git Configuration
Hopefully you will find these files helpful. Input from others is greatly appreciated. Besides the files in this repo, there are a few extra steps that are needed and explained below. Good luck!
##Download dotfiles
Run this command to download dotfiles to your home directory. Set your username and password in .gitconfig.
curl https://raw.githubusercontent.com/tomwolber/configs/master/.gitignore -o ~/.gitignore && \
curl https://raw.githubusercontent.com/tomwolber/configs/master/.gitconfig -o ~/.gitconfig && \
curl https://raw.githubusercontent.com/tomwolber/configs/master/.bashrc -o ~/.bashrc && \
curl https://raw.githubusercontent.com/tomwolber/configs/master/.bash_profile -o ~/.bash_profile && \
curl https://raw.githubusercontent.com/tomwolber/configs/master/.vimrc -o ~/.vimrc
| Basic Colors | ANSI Colors | |||
|---|---|---|---|---|
| Type | Color | Color | Normal | Bright |
| Foreground | 222, 218, 207 | Black | 0, 0, 0 | 49, 49, 49 |
| Background | 23, 23, 23 | Red | 255, 97, 90 | 245, 140, 128 |
| Bold | 255, 255, 255 | Green | 177, 233, 105 | 221, 248, 143 |
| Selection | 69, 59, 57 | Yellow | 235, 217, 156 | 238, 229, 178 |
| Selected Text | 182, 187, 192 | Blue | 93, 169, 246 | 165, 199, 255 |
| Cursor | 187, 187, 187 | Magenta | 232, 106, 255 | 221, 170, 255 |
| Cursor Text | 255, 255, 255 | Cyan | 130, 255, 247 | 183, 255, 249 |
| | White | 222, 218, 207 | 255, 255, 255
Pathogen is a package manager for Vim add-ons. Installing Pathogen is easy, copy and paste this whole command:
mkdir -p ~/.vim/autoload ~/.vim/bundle; \
curl -Sso ~/.vim/autoload/pathogen.vim \
https://raw.github.com/tpope/vim-pathogen/master/autoload/pathogen.vim
The final installation step is to make sure execute pathogen#infect() has been added to your .vimrc.
mkdir ~/.vim/bundle && cd ~/.vim/bundle && \
git clone https://github.com/mustache/vim-mustache-handlebars.git && \
git clone https://github.com/scrooloose/nerdtree.git && \
git clone https://github.com/scrooloose/syntastic.git && \
git clone https://github.com/bling/vim-airline.git && \
git clone https://github.com/tpope/vim-fugitive.git && \
git clone https://github.com/airblade/vim-gitgutter.git && \
git clone https://github.com/pangloss/vim-javascript.git && \
git clone https://github.com/terryma/vim-multiple-cursors.git && \
git clone https://github.com/jistr/vim-nerdtree-tabs.git && \
git clone https://github.com/tpope/vim-sensible.git && \
git clone git://github.com/wavded/vim-stylus.git
This command installs the following packages:
- nerdtree
- syntastic
- vim-airline
- vim-fugitive
- vim-gitgutter
- vim-javascript
- vim-multiple-cursors
- vim-mustache-handlebars
- vim-nerdtree-tabs
- vim-sensible
- vim-stylus
This command will update all installed packages
echo $'\n' && echo $'UPDATING PATHOGEN PACKAGES' && echo $'\n' && for i in ~/.vim/bundle/*; do basename $i && git -C $i pull && seq -f "-" -s '' 80 && echo $'\n'; done
Git doesn't really need that much configuration, but there are a few tricks in .gitconfig to make it nicer.
Enabling colors makes things like git status a lot more readable. True story.
Git's grep is awesome and ignores .git, which is nice. This setting sets all the nice flags and aliases it to g, ie git g 'test' instead of grep --break --heading --line-number test
I had been working on Linux for so long that I forgot the autocomplete for Git didn't work out of the box on OS X. Installing this script from Github is an easy no-brainer.
curl https://raw.githubusercontent.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash
echo "source ~/.git-completion.bash" >> ~/.bash_profile