Add support for rbenv and ruby perf fix

This commit is contained in:
Michael Campagnaro 2013-07-17 18:46:38 -04:00
parent e11951bf2d
commit a33f3bc004
5 changed files with 14 additions and 10 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
vim/.netrwhist

View File

@ -1,5 +0,0 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhist_cnt =3
let g:netrw_dirhist_1='/Users/sauron/code/projects/dotfiles/zsh/func'
let g:netrw_dirhist_2='/Users/pulsar/code/work/redwood/campusperks/test'
let g:netrw_dirhist_3='/Users/pulsar/code/projects/dotfiles/zsh/func'

1
vimrc
View File

@ -179,6 +179,7 @@ map <leader>mm :split<cr>
map <leader>gg :topleft 100 :split Gemfile<cr> map <leader>gg :topleft 100 :split Gemfile<cr>
map <leader>gr :topleft 100 :split config/routes.rb<cr> map <leader>gr :topleft 100 :split config/routes.rb<cr>
map <leader>sd :topleft 100 :split app/models/contests/seed_data.rb<cr>
" Clear the search buffer (highlighting) when hitting return " Clear the search buffer (highlighting) when hitting return
function! MapCR() function! MapCR()

View File

@ -29,6 +29,7 @@ alias beg='bundle exec guard'
alias bu='bundle update' alias bu='bundle update'
alias cls=clear alias cls=clear
alias code='cd ~/code' alias code='cd ~/code'
alias cpr='cp -r'
alias d='cd ~/.dotfiles' alias d='cd ~/.dotfiles'
alias dr='cd ~/Dropbox' alias dr='cd ~/Dropbox'
alias duh='du -csh' alias duh='du -csh'
@ -40,6 +41,7 @@ alias irb='irb --readline -r irb/completion'
alias patch='git format-patch HEAD^ --stdout > patch.diff' alias patch='git format-patch HEAD^ --stdout > patch.diff'
alias reguard='killall -9 ruby ; guard' alias reguard='killall -9 ruby ; guard'
alias r='rails' alias r='rails'
alias rb='rbenv'
alias rmr='rm -rf' alias rmr='rm -rf'
alias rc='rails console' alias rc='rails console'
alias reload='source ~/.zshrc' alias reload='source ~/.zshrc'
@ -49,6 +51,7 @@ alias v='vim'
alias vi='vim' alias vi='vim'
alias vimrc='vim ~/.vimrc' alias vimrc='vim ~/.vimrc'
alias q='quirk' alias q='quirk'
alias qe='quirk -e'
alias qc='quirk -c' alias qc='quirk -c'
alias qm='quirk -m' alias qm='quirk -m'
alias qq='quirk -t' alias qq='quirk -t'
@ -97,7 +100,7 @@ alias grm='git rm'
alias gsnapshot='git stash save "snapshot: $(date)" && git stash apply "stash@{0}"' alias gsnapshot='git stash save "snapshot: $(date)" && git stash apply "stash@{0}"'
alias gst='git status' alias gst='git status'
alias gs='git stash' alias gs='git stash'
alias gsa='git stash save' alias gss='git stash save'
alias gsd='git stash drop' alias gsd='git stash drop'
alias gsl='git stash list' alias gsl='git stash list'
alias gsp='git stash pop' alias gsp='git stash pop'

12
zshrc
View File

@ -61,8 +61,12 @@ source $HOME/.dotfiles/zsh/functions
# Customize to your needs... # Customize to your needs...
export PATH=/usr/local/sbin:/usr/local/bin:${PATH} export PATH=/usr/local/sbin:/usr/local/bin:${PATH}
PATH=$PATH:$HOME/bin PATH=$PATH:$HOME/bin
PATH="/usr/local/heroku/bin:$PATH"
# Initialize RVM # Start rbenv
PATH=$PATH:$HOME/.rvm/bin eval "$(rbenv init -)"
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
export RUBY_HEAP_MIN_SLOTS=1000000
export RUBY_HEAP_SLOTS_INCREMENT=1000000
export RUBY_HEAP_SLOTS_GROWTH_FACTOR=1
export RUBY_GC_MALLOC_LIMIT=1000000000
export RUBY_HEAP_FREE_MIN=500000