Skip to content
Browse files

Added my dotfiles!

  • Loading branch information...
1 parent 0277d0a commit 35eac9a03c35b9d1226666d8bb584c0d18bb3c55 @samuelreh committed Jun 21, 2011
Showing with 165 additions and 0 deletions.
  1. +1 −0 ackrc
  2. +58 −0 gitconfig
  3. +4 −0 kanye_rc
  4. +16 −0 profile
  5. +57 −0 vimrc.local
  6. +29 −0 zshrc
View
1 ackrc
@@ -0,0 +1 @@
+--type-set=ruby=.haml,.rake,.feature,.sass
View
58 gitconfig
@@ -0,0 +1,58 @@
+[user]
+ name = Sam Reh
+ email = samuelreh@gmail.com
+
+[alias]
+ st = status
+ ci = commit
+ co = checkout
+ di = diff
+ dc = diff --cached
+ amend = commit --amend
+ aa = add --all
+ head = !git l -1
+ h = !git head
+ r = !git l -20
+ ra = !git r --all
+ ff = merge --ff-only
+ pullff = pull --ff-only
+ l = log --graph --abbrev-commit --date=relative
+ la = !git l --all
+ div = divergence
+ gn = goodness
+ gnc = goodness --cached
+ fa = fetch --all
+ pom = push origin master
+
+[color]
+ diff = auto
+ status = auto
+ branch = auto
+ interactive = auto
+ ui = true
+ pager = true
+
+[color "branch"]
+ current = yellow reverse
+ local = yellow
+ remote = green
+
+[color "diff"]
+ meta = yellow bold
+ frag = magenta bold
+ old = red bold
+ new = green bold
+
+[color "status"]
+ added = yellow
+ changed = green
+ untracked = cyan
+
+[core]
+ pager = less -FRSX
+ whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol
+[github]
+ user = samuelreh
+
+[push]
+ default = tracking
View
4 kanye_rc
@@ -0,0 +1,4 @@
+username: samuelreh
+pages: 5
+path: /Users/samuelreh/Music/iTunes/iTunes\ Media/Automatically\ Add\ to\ iTunes
+db: /Users/samuelreh/Music/.history.db
View
16 profile
@@ -0,0 +1,16 @@
+export PATH="/usr/local/mysql/bin:$PATH"
+
+alias eft3="cd ~/Development/Ruby/eft3"
+alias dbreset='rake db:drop db:create db:migrate db:seed'
+alias jerbs="rake jobs:work"
+
+function gemo {
+ dir=$PWD;
+ bundle_dir=`bundle show $1`;
+ echo $bundle_dir;
+ cd $bundle_dir;
+ mvim .;
+ cd $dir;
+}
+
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
View
57 vimrc.local
@@ -0,0 +1,57 @@
+set guioptions-=r
+set guioptions-=R
+set guioptions-=l
+set guioptions-=L
+
+map <C-h> <C-w>h
+map <C-j> <C-w>j
+map <C-k> <C-w>k
+map <C-l> <C-w>l
+
+let mapleader = ","
+map <Leader>, :NERDTreeToggle<CR>
+
+map <Leader>i 0ela%{<Esc>A}<Esc>0
+
+nnoremap <silent> <F5> :let _s=@/<Bar>:%s/\s\+$//e<Bar>:let @/=_s<Bar>:nohl<CR>
+
+function! ExtractVariable()
+ let name = input("Variable name: ")
+ if name == ''
+ return
+ endif
+ " Enter visual mode (not sure why this is needed since we're already in
+ " visual mode anyway)
+ normal! gv
+
+ " Replace selected text with the variable name
+ exec "normal c" . name
+ " Define the variable on the line above
+ exec "normal! O" . name . " = "
+ " Paste the original selected text to be the variable value
+ normal! $p
+endfunction
+
+function! InlineVariable()
+ " Copy the variable under the cursor into the 'a' register
+ " XXX: How do I copy into a variable so I don't pollute the registers?
+ :normal "ayiw
+ " It takes 4 diws to get the variable, equal sign, and surrounding
+ " whitespace. I'm not sure why. diw is different from dw in this respect.
+ :normal 4diw
+ " Delete the expression into the 'b' register
+ :normal "bd$
+ " Delete the remnants of the line
+ :normal dd
+ " Go to the end of the previous line so we can start our search for the
+ " usage of the variable to replace. Doing '0' instead of 'k$' doesn't
+ " work; I'm not sure why.
+ normal k$
+ " Find the next occurence of the variable
+ exec '/\<' . @a . '\>'
+ " Replace that occurence with the text we yanked
+ exec ':.s/\<' . @a . '\>/' . @b
+endfunction
+
+vnoremap <leader>rv :call ExtractVariable()<cr>
+nnoremap <leader>ri :call InlineVariable()<cr>
View
29 zshrc
@@ -0,0 +1,29 @@
+# Path to your oh-my-zsh configuration.
+export ZSH=$HOME/.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.
+export ZSH_THEME="cloud"
+
+# Set to this to use case-sensitive completion
+# export CASE_SENSITIVE="true"
+
+# Comment this out to disable weekly auto-update checks
+# export DISABLE_AUTO_UPDATE="true"
+
+# Uncomment following line if you want to disable colors in ls
+# export DISABLE_LS_COLORS="true"
+
+# Uncomment following line if you want to disable autosetting terminal title.
+# export DISABLE_AUTO_TITLE="true"
+
+# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
+# Example format: plugins=(rails git textmate ruby lighthouse)
+plugins=(git)
+
+source $HOME/.profile
+source $ZSH/oh-my-zsh.sh
+
+# Customize to your needs...

0 comments on commit 35eac9a

Please sign in to comment.
Something went wrong with that request. Please try again.