Permalink
Browse files

add GVM, rails()

  • Loading branch information...
1 parent eedf688 commit 3e208d2788756dea66bba6934d8c690fc29add24 @sshaw committed Feb 22, 2014
Showing with 10 additions and 1 deletion.
  1. +10 −1 bashrc
View
11 bashrc
@@ -37,7 +37,7 @@ alias rg='egrep -R'
shopt -s cdspell cdable_vars cmdhist extglob histappend no_empty_cmd_completion
-for f in ~/.rvm/scripts/rvm ~/perl5/perlbrew/etc/bashrc; do
+for f in ~/.rvm/scripts/rvm ~/perl5/perlbrew/etc/bashrc ~/.gvm/bin/gvm-init.sh; do
[ -f "$f" ] && source $f
done
@@ -177,6 +177,15 @@ psh()
perl -MData::Dump=dd -wne'BEGIN { $p = "perl > "; print $p }; dd eval; print $p'
}
+rails()
+{
+ if [ -f "./Gemfile" ]; then
+ bundle exec rails "$@"
+ else
+ command rails "$@"
+ fi
+}
+
rake()
{
local r=$(which rake)

0 comments on commit 3e208d2

Please sign in to comment.