Last active
August 29, 2015 13:58
-
-
Save blamattina/10332801 to your computer and use it in GitHub Desktop.
Customizations to thoughtbot/dotfiles
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
set-option -g default-command "reattach-to-user-namespace -l zsh" | |
# Use vim bindings to navigate | |
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L" | |
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D" | |
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U" | |
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R" | |
bind -n C-\ run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys 'C-\\') || tmux select-pane -l" |
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
Bundle 'terryma/vim-multiple-cursors' | |
Bundle 'itchyny/lightline.vim' | |
Bundle 'rking/ag.vim' | |
Bundle 'nono/vim-handlebars' | |
Bundle 'christoomey/vim-tmux-navigator' | |
Bundle 'csexton/jekyll.vim' |
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
set colorcolumn=80 | |
highlight ColorColumn ctermbg=white guibg=white | |
" Numbers | |
set number | |
set numberwidth=5 | |
set relativenumber | |
set fillchars="" | |
" Run a command and restore search and cursor position. | |
function! Preserve(command) | |
" Preparation: save last search, and cursor position. | |
let _s=@/ | |
let l = line(".") | |
let c = col(".") | |
" Do the business: | |
execute a:command | |
" Clean up: restore previous search history, and cursor position | |
let @/=_s | |
call cursor(l, c) | |
endfunction | |
augroup vimrcEx | |
" Strip trailing whitespace | |
autocmd BufWritePre * :call Preserve("%s/\\s\\+$//e") | |
" Set tabs to 4 spaces for some file extensions | |
autocmd BufRead,BufNewFile *.py,*.js,*.html setlocal tabstop=4 | |
autocmd BufRead,BufNewFile *.py,*.js,*.html setlocal shiftwidth=4 | |
augroup END | |
" Jekyll Blog | |
let g:jekyll_path = "/Users/brian/projects/blamattina.github.io" | |
let g:jekyll_post_published = "false" | |
map <Leader>jb :JekyllBuild<CR> | |
map <Leader>jn :JekyllPost<CR> | |
map <Leader>jl :JekyllList<CR> | |
map <Leader>jc :JekyllCommit<CR> | |
map <Leader>jp :JekyllPublish<CR> |
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
# z | |
. `brew --prefix`/etc/profile.d/z.sh | |
# virtualenv | |
export PATH="/usr/local/Cellar/python/2.7.6/bin:$PATH" | |
export WORKON_HOME=$HOME/.virtualenvs | |
export PROJECT_HOME=$HOME/Devel | |
source /usr/local/bin/virtualenvwrapper.sh | |
# postgress.app | |
export PATH="/Applications/Postgres93.app/Contents/MacOS/bin:$PATH" | |
# macvim | |
export PATH="/usr/local/bin:$PATH" |
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
# Essentials | |
install zsh | |
install macvim --override-system-vim | |
install git-sh | |
install z | |
install ssh-copy-id | |
install goaccess | |
install htop-osx | |
install the_silver_searcher | |
install curl | |
install wget | |
install siege | |
install heroku-toolbelt | |
# Integration testing | |
install phantomjs | |
install chromedriver | |
install qt | |
# Database | |
install mongodb | |
install mysql | |
install redis | |
# Languages | |
install ruby-build | |
install rbenv-gemset | |
install python | |
install node | |
# Tmux | |
install tmux | |
install tmate | |
install reattach-to-user-namespace |
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
npm install -g coffeelint |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment