Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

add GVM, rails()

  • Loading branch information...
commit 3e208d2788756dea66bba6934d8c690fc29add24 1 parent eedf688
@sshaw authored
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)
Please sign in to comment.
Something went wrong with that request. Please try again.