Permalink
Browse files

Initial commit

  • Loading branch information...
0 parents commit 5632846ad2fe8e72435fc8ac40b669b89d007a03 @suweller committed Jul 21, 2012
Showing with 655 additions and 0 deletions.
  1. +3 −0 .gitignore
  2. +25 −0 README.md
  3. +7 −0 ackrc
  4. +13 −0 bash_profile
  5. +2 −0 bin/blip.sh
  6. +30 −0 bin/git-purge
  7. +9 −0 bin/git-sane
  8. +11 −0 bin/git-wazzup
  9. +1 −0 bin/gits
  10. +2 −0 bin/quiet.sh
  11. +5 −0 bin/securerandom
  12. +9 −0 gemrc
  13. +20 −0 gitconfig
  14. +7 −0 gitignore
  15. +4 −0 gvimrc
  16. +2 −0 id_rsa.pub
  17. +62 −0 install.sh
  18. +47 −0 irbrc
  19. +18 −0 railsrc
  20. +2 −0 rdebugrc
  21. +18 −0 screenrc
  22. 0 vim/bundle/.gitkeep
  23. +17 −0 vim/config/highlight_cursor_jumps.vim
  24. 0 vim/tmp/.gitkeep
  25. +192 −0 vimrc
  26. +5 −0 zlogin
  27. +58 −0 zsh/aliases
  28. +19 −0 zsh/functions
  29. +67 −0 zshrc
3 .gitignore
@@ -0,0 +1,3 @@
+vim/.netrwhist
+vim/bundle
+oh-my-zsh
25 README.md
@@ -0,0 +1,25 @@
+# Steven Weller's dot files
+
+These are config files to set up a system the way I like it.
+Vim-users will likely find useful stuff in
+`vimrc`,
+and `vim/config/*`.
+I like aliases.
+You might find a few you like in `zsh/aliases`.
+
+# Installation
+
+The whole installation process is managed by the install shell script.
+
+ git clone git://github.com/suweller/dotfiles ~/.dotfiles
+ cd ~/.dotfiles
+ ./install.sh
+
+## VIM
+
+Vim plugins are handled by the `Vundle` vim plugin.
+This plugin is fetched and placed in the correct directory by cloning the
+git repository: https://github.com/gmarik/vundle
+
+After its fetched,
+it will launch vim to fetch and install all other plugins.
7 ackrc
@@ -0,0 +1,7 @@
+--type-add
+ruby=.haml,.feature,.scss,.coffee
+--ignore-dir=vendor
+--ignore-dir=log
+--ignore-dir=tmp
+--ignore-dir=doc
+--ignore-dir=coverage
13 bash_profile
@@ -0,0 +1,13 @@
+source ~/.bash/aliases
+source ~/.bash/functions
+source ~/.bash/completions
+source ~/.bash/paths
+source ~/.bash/config
+source ~/.bash/history_config
+
+if [ -f ~/.bashrc ]; then
+ . ~/.bashrc
+fi
+
+# Enable RVM
+[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm
2 bin/blip.sh
@@ -0,0 +1,2 @@
+# Amp Hz Duration
+xset b 100 220 5
30 bin/git-purge
@@ -0,0 +1,30 @@
+#!/bin/bash
+current_branch=$(git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/')
+if [ "$current_branch" != "master" ]; then
+ echo "WARNING: You are on branch $current_branch, NOT master."
+fi
+echo "Fetching merged branches..."
+git remote prune origin
+remote_branches=$(git branch -r --merged | grep -v '/master$' | grep -v "/$current_branch$")
+local_branches=$(git branch --merged | grep -v 'master$' | grep -v "$current_branch$")
+if [ -z "$remote_branches" ] && [ -z "$local_branches" ]; then
+ echo "No existing branches have been merged into $current_branch."
+else
+ echo "This will remove the following branches:"
+ if [ -n "$remote_branches" ]; then
+ echo "$remote_branches"
+ fi
+ if [ -n "$local_branches" ]; then
+ echo "$local_branches"
+ fi
+ read -p "Continue? (y/n): " -n 1 choice
+ echo
+ if [ "$choice" == "y" ] || [ "$choice" == "Y" ]; then
+ # Remove remote branches
+ git push origin `git branch -r --merged | grep -v '/master$' | grep -v "/$current_branch$" | sed 's/origin\//:/g' | tr -d '\n'`
+ # Remove local branches
+ git branch -d `git branch --merged | grep -v 'master$' | grep -v "$current_branch$" | sed 's/origin\///g' | tr -d '\n'`
+ else
+ echo "No branches removed."
+ fi
+fi
9 bin/git-sane
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+grep "raise" spec config lib app -r
+echo "------------------------"
+grep "save_and_open_page" spec -r
+echo "------------------------"
+grep "sleep" spec -r
+echo "------------------------"
+grep "binding.pry" spec -r
11 bin/git-wazzup
@@ -0,0 +1,11 @@
+#!/usr/bin/env ruby
+
+branches = `git branch`.split("\n")
+current = branches.grep(/^\*/).first[/[^ *]+/]
+branches = branches.map{|v| v[/[^ *]+/]}
+
+(branches - [current]).each do |branch|
+ unless (cherries = `git cherry -v #{current} #{branch}`).empty?
+ puts "#{branch}\n#{cherries}\n"
+ end
+end
1 bin/gits
@@ -0,0 +1 @@
+git status
2 bin/quiet.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+osascript -e "set volume output volume 15"
5 bin/securerandom
@@ -0,0 +1,5 @@
+#!/usr/bin/env ruby
+require 'secure_random'
+
+puts "This calls SecureRandom.base64 in ruby"
+puts SecureRandom.base64
9 gemrc
@@ -0,0 +1,9 @@
+---
+:sources:
+- http://rubygems.org
+:benchmark: false
+:update_sources: true
+:backtrace: false
+gem: --no-ri --no-rdoc
+:bulk_threshold: 1000
+:verbose: true
20 gitconfig
@@ -0,0 +1,20 @@
+[user]
+ name = Steven Weller
+ email = github@suweller.com
+[alias]
+ co = checkout
+ st = status
+ br = branch
+[merge]
+ tool = vimdiff
+[color]
+ ui = true
+[core]
+ excludesfile = ~/.gitignore
+ editor = vim
+[push]
+ default = current
+[github]
+ user = suweller
+[init]
+ templatedir = ~/.git_template
7 gitignore
@@ -0,0 +1,7 @@
+.DS_Store
+.svn
+*~
+tags
+log/
+db/*.sqlite3
+.netrwhist
4 gvimrc
@@ -0,0 +1,4 @@
+set lbr
+
+set lines=99999
+set columns=99999
2 id_rsa.pub
@@ -0,0 +1,2 @@
+ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAsIK1O6MJvYnIgLS7vY5qQH+cDKnQnlvWGnoj93CAN0zwtEPNdQxR18hjxlVCEGfD/ilLr72SyICdY3Fl5hGlIATTVqo8H0UnXsth3anRtBQMUPo9nKn3x20BLpxQdHkR8op9qX84NfpbJg2x2jcIpeoFyhOaweFSOdDCkkKaWw8D2y6j9gsh/VVE5DDLCeR3VZO8SWC0kAtHJkD0FaZbJvC059lLJPo8qJhw9bJ0ZYRwIG5dCR9ndBpEI751Xl+NjAUKMZO0PRm1Up5Y9rUh0/jKXvfzcpiGv4BMx8agT7AzBMAkHcuqlRMlZumNB+6EBIGLI0nlQsL9OniWZEi3nQ== suweller@whodabaka
+ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEAsIK1O6MJvYnIgLS7vY5qQH+cDKnQnlvWGnoj93CAN0zwtEPNdQxR18hjxlVCEGfD/ilLr72SyICdY3Fl5hGlIATTVqo8H0UnXsth3anRtBQMUPo9nKn3x20BLpxQdHkR8op9qX84NfpbJg2x2jcIpeoFyhOaweFSOdDCkkKaWw8D2y6j9gsh/VVE5DDLCeR3VZO8SWC0kAtHJkD0FaZbJvC059lLJPo8qJhw9bJ0ZYRwIG5dCR9ndBpEI751Xl+NjAUKMZO0PRm1Up5Y9rUh0/jKXvfzcpiGv4BMx8agT7AzBMAkHcuqlRMlZumNB+6EBIGLI0nlQsL9OniWZEi3nQ== steven@whodabaka
62 install.sh
@@ -0,0 +1,62 @@
+#!/bin/bash
+ENTRIES='*'
+EXCLUDED=(LICENSE README.md id_rsa.pub install.sh oh-my-zsh)
+
+function excluded() {
+ for excluded_entry in ${EXCLUDED[@]}; do
+ if [ $1 == $excluded_entry ]; then
+ return 0
+ fi
+ done
+ return 1
+}
+
+function yesno() {
+ read -p "$1? (y/n)" -n 1 -r
+ echo ''
+ [ $REPLY == "y" ] && return 0 || return 1
+}
+
+function symlink_file() {
+ ln -s $PWD/$1 $HOME/.$1
+}
+
+for entry in $ENTRIES; do
+ if (excluded $entry); then
+ continue
+ fi
+ if [ -a "$HOME/.$entry" ]; then
+ if (yesno "~/.$entry exists. overwrite"); then
+ rm -rf $HOME/.$entry
+ symlink_file $entry
+ else
+ echo "$entry is skipped"
+ fi
+ else
+ symlink_file $entry
+ fi
+done
+
+# Install oh-my-zsh if its not present
+oh_my_zsh="$PWD/oh-my-zsh"
+if [ -a $oh_my_zsh ]; then
+ echo "oh-my-zsh is already installed"
+ git clone git://github.com/bobbyrussel/oh-my-zsh $oh_my_zsh
+fi
+
+# Handle ssh pubkey
+id_rsa=$HOME/.ssh/id_rsa.pub
+rm $id_rsa
+ln -s $PWD/id_rsa.pub $id_rsa
+
+# Install Vundle if its not present
+vundle="$PWD/vim/bundle/vundle"
+if [ -a $vundle ]; then
+ echo "vundle is already installed"
+else
+ git clone git://github.com/gmarik/vundle.git $vundle
+ vim +BundleInstall +qall # Fetch and install all bundles included in vimrc
+fi
+
+echo "You can make zsh your default shell by running:"
+echo "chsh -s /bin/zsh"
47 irbrc
@@ -0,0 +1,47 @@
+#!/usr/bin/ruby
+require 'irb/completion'
+require 'irb/ext/save-history'
+
+IRB.conf[:SAVE_HISTORY] = 1000
+IRB.conf[:HISTORY_FILE] = "#{ENV['HOME']}/.irb_history"
+
+IRB.conf[:PROMPT_MODE] = :SIMPLE
+
+IRB.conf[:AUTO_INDENT] = true
+
+class Object
+ # list methods which aren't in superclass
+ def local_methods(obj = self)
+ (obj.methods - obj.class.superclass.instance_methods).sort
+ end
+
+ # print documentation
+ #
+ # ri 'Array#pop'
+ # Array.ri
+ # Array.ri :pop
+ # arr.ri :pop
+ def ri(method = nil)
+ unless method && method =~ /^[A-Z]/ # if class isn't specified
+ klass = self.kind_of?(Class) ? name : self.class.name
+ method = [klass, method].compact.join('#')
+ end
+ puts `ri '#{method}'`
+ end
+end
+
+def copy(str)
+ IO.popen('pbcopy', 'w') { |f| f << str.to_s }
+end
+
+def paste
+ `pbpaste`
+end
+
+load File.dirname(__FILE__) + '/.railsrc' if $0 == 'irb' && ENV['RAILS_ENV']
+
+# Show SQL in console
+# if ENV.include?('RAILS_ENV') && !Object.const_defined?('RAILS_DEFAULT_LOGGER')
+# require 'logger'
+# RAILS_DEFAULT_LOGGER = Logger.new(STDOUT)
+# end
18 railsrc
@@ -0,0 +1,18 @@
+#!/usr/bin/ruby
+
+def change_log(stream)
+ ActiveRecord::Base.logger = Logger.new(stream)
+ ActiveRecord::Base.clear_active_connections!
+end
+
+def show_log
+ change_log(STDOUT)
+end
+
+def hide_log
+ change_log(nil)
+end
+
+def show_session(session)
+ Marshal.load(Base64.decode64(session))
+end
2 rdebugrc
@@ -0,0 +1,2 @@
+set autoeval on
+
18 screenrc
@@ -0,0 +1,18 @@
+
+hardstatus alwayslastline "%{= KW}%-w%{= ck}%50>%n %t%{-}%+w%<%-22=%{w}%c [%l]"
+
+nonblock 5
+
+# detach the screen if we get disconnected
+autodetach on
+
+# Show messages at the bottom for only 0.5s
+msgwait 0.5
+
+shell -${SHELL}
+
+# Show the currently-running program
+shelltitle '$ |bash'
+
+# allow for 10,000 lines of scroll back (default 100)
+defscrollback 10000
0 vim/bundle/.gitkeep
No changes.
17 vim/config/highlight_cursor_jumps.vim
@@ -0,0 +1,17 @@
+function s:Cursor_Moved()
+ let cur_pos = winline()
+ if g:last_pos == 0
+ set cul
+ let g:last_pos = cur_pos
+ return
+ endif
+ let diff = g:last_pos - cur_pos
+ if diff > 1 || diff < -1
+ set cul
+ else
+ set nocul
+ endif
+ let g:last_pos = cur_pos
+endfunction
+autocmd CursorMoved,CursorMovedI * call s:Cursor_Moved()
+let g:last_pos = 0
0 vim/tmp/.gitkeep
No changes.
192 vimrc
@@ -0,0 +1,192 @@
+"call pathogen#runtime_append_all_bundles()
+"call pathogen#helptags()
+
+filetype off " Turn off _before_ loading all Bundles
+
+set rtp+=~/.vim/bundle/vundle/
+call vundle#rc()
+" Let Vundle manage Vundle (required)!
+Bundle 'gmarik/vundle'
+" My bundles
+Bundle 'ervandew/supertab'
+Bundle 'kchmck/vim-coffee-script'
+Bundle 'kien/ctrlp.vim'
+Bundle 'leshill/vim-json'
+Bundle 'nathanaelkane/vim-indent-guides'
+Bundle 'tpope/vim-commentary'
+Bundle 'tpope/vim-cucumber'
+Bundle 'tpope/vim-endwise'
+Bundle 'tpope/vim-fugitive'
+Bundle 'tpope/vim-haml'
+Bundle 'tpope/vim-markdown'
+Bundle 'tpope/vim-rails'
+Bundle 'tpope/vim-rvm'
+Bundle 'tpope/vim-surround'
+Bundle 'vim-ruby/vim-ruby'
+Bundle 'vim-scripts/bufkill.vim'
+
+filetype plugin indent on " Turn on _after_ loading all Bundles
+
+" Switch syntax highlighting on, when the terminal has colors
+" Also switch on highlighting the last used search pattern.
+if &t_Co > 2 || has("gui_running")
+ syntax on
+ set hlsearch
+endif
+
+set encoding=utf-8
+set backupdir=~/.vim/tmp
+set directory=~/.vim/tmp " Don't clutter up dirs with swp and tmp files
+set history=500 " keep 500 lines of command line history
+set autoread " reload files only changed outside vim from disk
+
+set ttyfast " u got a fast terminal
+
+set nocompatible " We're running VIM, not vi
+set mouse=a " allow ... mouse ...
+
+set ruler " show the cursor position all the time
+set relativenumber " show line numbers relative to cursor
+set backspace=indent,eol,start " allow backspacing over everything in insert mode
+set showcmd " display incomplete commands
+set showmatch
+set wmh=0 " minimum unfocussed window height
+set viminfo+=!
+
+set guifont=Triskweline_10:h10
+set guioptions-=T
+set hlsearch " highlight matches
+set incsearch " incremental searching
+
+set shiftwidth=2
+set expandtab
+set smarttab
+set colorcolumn=80 " mark the 80th character
+set ignorecase " searches are case insensitive...
+set smartcase " ... unless they contain at least one capital letter
+set scrolloff=5 " don't show search results as the first line
+set laststatus=2 " Always show status line.
+set autoindent " always set autoindenting on
+set shiftround " When at 3 spaces and I hit >>, go to 4, not 5.
+
+set gdefault " assume the /g flag on :s
+set tags=./tags; " Set the tag file search order
+set grepprg=ack " Use Ack instead of grep
+" set iskeyword-=_ " Use _ as a word-separator
+set wildmenu " Better? completion on command line
+set wildmode=list:longest,full
+set wildignore+=*/.git/*,*/.hg/*,*/.svn/*
+set statusline=%<%f\ %h%m%r%=%-14.(%l,%c%V%)\ %P
+
+" ================
+" Ruby stuff
+" ================
+augroup myfiletypes
+ " Clear old autocmds in group
+ autocmd!
+ " autoindent with two spaces, always expand tabs
+ autocmd FileType ruby,eruby,yaml set ai sw=2 sts=2 et
+augroup END
+" ================
+
+" Format xml files
+autocmd FileType xml exe ":silent 1,$!xmllint --format --recover - 2>/dev/null"
+" Don't add the comment prefix when I hit enter or o/O on a comment line.
+autocmd FileType * setlocal formatoptions-=c formatoptions-=r formatoptions-=o
+" When loading text files, wrap them and don't split up words.
+autocmd BufNewFile,BufRead *.txt setlocal wrap
+autocmd BufNewFile,BufRead *.txt setlocal lbr
+" Set up some useful Rails.vim bindings for working with Backbone.js
+autocmd User Rails Rnavcommand template app/assets/templates -glob=**/* -suffix=.jst.ejs
+autocmd User Rails Rnavcommand jmodel app/assets/javascripts/models -glob=**/* -suffix=.coffee
+autocmd User Rails Rnavcommand jview app/assets/javascripts/views -glob=**/* -suffix=.coffee
+autocmd User Rails Rnavcommand jcollection app/assets/javascripts/collections -glob=**/* -suffix=.coffee
+autocmd User Rails Rnavcommand jrouter app/assets/javascripts/routers -glob=**/* -suffix=.coffee
+autocmd User Rails Rnavcommand jspec spec/javascripts -glob=**/* -suffix=.coffee
+" Fix some performance issues
+autocmd BufWinLeave * call clearmatches()
+
+imap § <esc>
+
+" ====================
+" CtrlP options
+" :help ctrlp-commands
+" ====================
+let g:ctrlp_use_caching = 1
+let g:ctrlp_clear_cache_on_exit = 1
+let g:ctrlp_switch_buffer = 2
+let g:ctrlp_custom_ignore = {
+ \ 'dir': '\.git$\|\.hg$\|\.svn$|^vendor$|^coverage$|^tmp$|^rdoc$|',
+ \ 'file': '\.png$\|\.jpg$\|\.gif$|',
+ \ }
+" \ 'link': 'SOME_BAD_SYMBOLIC_LINKS',
+let g:ctrlp_max_depth = 10 " Directory depth to recurse into when scanning
+let g:ctrlp_open_new_file = 't' " open files in new tab
+
+let mapleader = ","
+
+" Quick open some default locations
+nmap <Leader>bi :source ~/.vimrc<cr>:BundleInstall<cr>
+nmap <Leader>bx :tabe ~/Dropbox<cr>
+nmap <Leader>sn :tabe ~/.vim/snippets/ruby.snippets<CR>
+nmap <Leader>vi :tabe ~/.vimrc<CR>
+
+nmap <Leader>f :sp spec/fabricators<CR>
+nmap <Leader>fa :sp test/factories.rb<CR>
+nmap <Leader>sc :sp db/schema.rb<cr>
+
+" vim-fugitive
+map <Leader>bl :Gblame<CR>
+nmap <Leader>gac :Gcommit -m -a ""<LEFT>
+nmap <Leader>gc :Gcommit -m ""<LEFT>
+nmap <Leader>gs :Gstatus<CR>
+
+" command-t
+nmap <Leader>h :CtrlP<CR>
+nmap <Leader>rf :CtrlPClearCache<CR>
+
+" Quick insert stuff
+nmap <Leader>p osave_and_open_page=h
+nmap <Leader>d obinding.pry<cr>
+
+" Edit another file in the same directory as the current file
+" uses expression to extract path from current file's path
+nmap <Leader>e :e <C-R>=expand("%:p:h") . '/'<CR>
+nmap <Leader>s :split <C-R>=expand("%:p:h") . '/'<CR>
+nmap <Leader>v :vnew <C-R>=expand("%:p:h") . '/'<CR>
+" Merge a tab into a split in the previous window
+nmap <c-w>u :call MergeTabs()<CR>
+
+map <c-h> :set hlsearch!<cr>
+imap <c-l> :<space>
+map <c-s> <esc>:w<cr>
+imap <c-s> <esc>:w<cr>
+map <c-t> <esc>:tabnew<cr>
+" map <c-x> <c-w>c
+map <c-n> :cn<cr>
+map <c-p> :cp<cr>
+
+" Emacs-like beginning and end of line.
+imap <c-e> <c-o>$
+imap <c-a> <c-o>^
+" Disable Ex mode
+map Q <Nop>
+" Disable K looking stuff up
+map K <Nop>
+" Center search matches when jumping
+map N Nzz
+map n nzz
+
+imap <Tab> <C-P>
+
+" Skip buffer lines, not actual (wrapped) lines
+nmap k gk
+nmap j gj
+
+noremap <F9> :set spell! spell?<CR>
+
+command! Q q " Bind :Q to :q
+command! Qall qall
+
+runtime macros/matchit.vim
+runtime! config/**/*.vim
5 zlogin
@@ -0,0 +1,5 @@
+# go to saved path if there is one
+if [[ -f ~/.current_path~ ]]; then
+ cd `cat ~/.current_path~`
+ rm ~/.current_path~
+fi
58 zsh/aliases
@@ -0,0 +1,58 @@
+# Handle the fact that this file will be used with multiple OSs
+platform=`uname`
+if [[ $platform == 'Linux' ]]; then
+ alias a='ls -lrth --color'
+elif [[ $platform == 'Darwin' ]]; then
+ alias a='ls -lrthG'
+fi
+
+alias -g G='| grep'
+
+# Editor
+#alias vim='mvim -v'
+alias vi='vim'
+
+# Quick file access
+alias aliases='vim ~/.dotfiles/zsh/aliases'
+alias so='source ~/.dotfiles/zsh/aliases'
+alias zshconf='vim ~/.dotfiles/zshrc'
+alias vimrc='vim ~/.dotfiles/vimrc'
+
+# Quick dir access
+alias c='cd ~/Documents/80beans/'
+alias o='cd ~/Documents/open-source/'
+alias d='cd ~/.dotfiles'
+alias dr='cd ~/Dropbox'
+alias u='cd ..'
+
+# Git aliases
+alias amend="git commit --amend"
+alias gad='git add .'
+alias gadu='git add -u .'
+alias gca='git commit -a'
+alias gcaa='git commit -a --amend -C HEAD'
+alias gcl='git clone'
+alias gcm='git commit -m'
+alias gco='git checkout'
+alias gd='git diff'
+alias gdc='git diff --cached'
+alias get='sudo apt-get install'
+alias gg='git lg'
+alias gpush='git push'
+alias gpsuh='git push'
+alias gpr='git pull --rebase'
+alias grc='git rebase --continue'
+alias hpush='git push heroku'
+
+# Bundle aliases
+alias be='bundle exec'
+alias bi='bundle install'
+alias bu='bundle update'
+alias bunbang='bundle install && !!'
+
+alias bake='bundle exec rake'
+alias ber='bundle exec rspec'
+alias bes='bundle exec rails s'
+alias bec='bundle exec rails c'
+
+alias killrb='killall -9 ruby'
19 zsh/functions
@@ -0,0 +1,19 @@
+function git-nuke {
+ git branch -D $1 && git push origin :$1
+}
+
+function git-on-master {
+ branch=`git_branch_name`
+ git checkout master && git pull --rebase
+ git checkout $branch
+ git rebase master
+ }
+
+function g {
+ if [[ $# > 0 ]]; then
+ git $@
+ else
+ git status
+ fi
+}
+compdef g=git
67 zshrc
@@ -0,0 +1,67 @@
+# Path to your oh-my-zsh configuration.
+ZSH=$HOME/.dotfiles/oh-my-zsh
+
+# Set name of the theme to load.
+# Look in ~/.oh-my-zsh/themes/
+# Optionally, if you set this to "random", it'll load a random theme each
+# time that oh-my-zsh is loaded.
+ZSH_THEME="robbyrussell"
+
+# Never know when you're gonna need to popd!
+# setopt AUTO_PUSHD
+
+# Allow completing of the remainder of a command
+bindkey "^N" insert-last-word
+
+# Show contents of directory after cd-ing into it
+chpwd() {
+ ls -lrthG
+}
+
+# Save a ton of history
+HISTSIZE=20000
+HISTFILE=~/.zsh_history
+SAVEHIST=20000
+
+# Set to this to use case-sensitive completion
+# CASE_SENSITIVE="true"
+
+# Comment this out to disable weekly auto-update checks
+# DISABLE_AUTO_UPDATE="true"
+
+# Uncomment following line if you want to disable colors in ls
+# DISABLE_LS_COLORS="true"
+
+# Uncomment following line if you want to disable autosetting terminal title.
+# DISABLE_AUTO_TITLE="true"
+
+# Uncomment following line if you want red dots to be displayed while waiting for completion
+# COMPLETION_WAITING_DOTS="true"
+
+# Disable flow control commands (keeps C-s from freezing everything)
+stty start undef
+stty stop undef
+
+# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
+# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
+# Example format: plugins=(rails git textmate ruby lighthouse)
+plugins=(vi-mode git rails3 ruby bundler rvm terminalapp history-substring-search cap compleat)
+
+source $ZSH/oh-my-zsh.sh
+setopt interactivecomments
+
+# Source my custom files after oh-my-zsh so I can override things.
+source $HOME/.dotfiles/zsh/aliases
+source $HOME/.dotfiles/zsh/functions
+
+# Customize to your needs...
+export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/X11/bin
+export PATH=$PATH:~/.dotfiles/bin:~/.rvm/bin
+
+export EDITOR='vim'
+
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # This loads RVM
+
+export LANG="en_US.utf-8"
+export LC_ALL="en_US.utf-8"
+export LC_CTYPE="utf-8"

0 comments on commit 5632846

Please sign in to comment.