From a33f3bc004a15b836d22925641b6ac0df52a9ca2 Mon Sep 17 00:00:00 2001 From: Michael Campagnaro Date: Wed, 17 Jul 2013 18:46:38 -0400 Subject: [PATCH] Add support for rbenv and ruby perf fix --- .gitignore | 1 + vim/.netrwhist | 5 ----- vimrc | 1 + zsh/aliases | 5 ++++- zshrc | 12 ++++++++---- 5 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 .gitignore delete mode 100644 vim/.netrwhist diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..ffe9657 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +vim/.netrwhist diff --git a/vim/.netrwhist b/vim/.netrwhist deleted file mode 100644 index cb8acc3..0000000 --- a/vim/.netrwhist +++ /dev/null @@ -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' diff --git a/vimrc b/vimrc index f7f9124..69030d5 100644 --- a/vimrc +++ b/vimrc @@ -179,6 +179,7 @@ map mm :split map gg :topleft 100 :split Gemfile map gr :topleft 100 :split config/routes.rb +map sd :topleft 100 :split app/models/contests/seed_data.rb " Clear the search buffer (highlighting) when hitting return function! MapCR() diff --git a/zsh/aliases b/zsh/aliases index 509ec93..c93399b 100644 --- a/zsh/aliases +++ b/zsh/aliases @@ -29,6 +29,7 @@ alias beg='bundle exec guard' alias bu='bundle update' alias cls=clear alias code='cd ~/code' +alias cpr='cp -r' alias d='cd ~/.dotfiles' alias dr='cd ~/Dropbox' 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 reguard='killall -9 ruby ; guard' alias r='rails' +alias rb='rbenv' alias rmr='rm -rf' alias rc='rails console' alias reload='source ~/.zshrc' @@ -49,6 +51,7 @@ alias v='vim' alias vi='vim' alias vimrc='vim ~/.vimrc' alias q='quirk' +alias qe='quirk -e' alias qc='quirk -c' alias qm='quirk -m' 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 gst='git status' alias gs='git stash' -alias gsa='git stash save' +alias gss='git stash save' alias gsd='git stash drop' alias gsl='git stash list' alias gsp='git stash pop' diff --git a/zshrc b/zshrc index b2cd96b..1c18860 100644 --- a/zshrc +++ b/zshrc @@ -61,8 +61,12 @@ source $HOME/.dotfiles/zsh/functions # Customize to your needs... export PATH=/usr/local/sbin:/usr/local/bin:${PATH} PATH=$PATH:$HOME/bin -PATH="/usr/local/heroku/bin:$PATH" -# Initialize RVM -PATH=$PATH:$HOME/.rvm/bin -[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" +# Start rbenv +eval "$(rbenv init -)" + +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