Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add rvm and aliases

  • Loading branch information...
commit 2051d7745614e6c927af29ae4ecec567a637714c 1 parent 2df637e
@dreamfall authored
Showing with 18 additions and 7 deletions.
  1. +16 −7 zsh/aliases
  2. +2 −0  zshrc
View
23 zsh/aliases
@@ -9,7 +9,7 @@ alias less='less -R'
alias grep='grep --color=always'
alias pwgen='pwgen -1cnsB'
-alias ack='ack -a'
+alias ack='ack-grep -a'
# git
alias gl='git pull'
@@ -24,14 +24,23 @@ alias grm="git status | grep deleted | awk '{print \$3}' | xargs git rm"
alias changelog='git log `git log -1 --format=%H -- CHANGELOG*`..; cat CHANGELOG*'
# rails
-alias sc='script/console'
-alias ss='script/server'
-alias sg='script/generate'
-alias a='autotest -rails'
+alias rc='bundle exec rails console'
+alias rs='bundle exec rails server'
+alias rg='bundle exec rails generate'
alias tlog='tail -f log/development.log'
-alias scaffold='script/generate nifty_scaffold'
-alias migrate='rake db:migrate db:test:clone'
+alias scaffold='bundle exec rails generate nifty_scaffold'
+alias migrate='bundle exec rake db:migrate db:test:clone'
+alias pst='passenger start'
+alias pstp='passenger start -e production'
alias trt='touch tmp/restart.txt'
+alias be='bundle exec'
+
+# git
+alias gitk='gitk --all'
+alias gitg='gitg --all'
# commands starting with % for pasting from web
alias %=' '
+
+# commands starting with $ for pasting from web
+alias $=' '
View
2  zshrc
@@ -4,3 +4,5 @@
# use .localrc for settings specific to one system
[[ -f ~/.localrc ]] && . ~/.localrc
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
+PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
Please sign in to comment.
Something went wrong with that request. Please try again.