Skip to content

Commit

Permalink
Updated to include GEMDIR and (mate|vim|emacs)gem command
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Garver committed Dec 4, 2008
1 parent e537b58 commit 9775934
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions bash/aliases
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,17 @@ alias ls='ls -G'

# misc
alias reload='. ~/.bash_profile'


vimgem() {
vim $GEMDIR/gems/`$(which ls) $GEMDIR/gems | grep -x $1.* | sort | tail -1`/
}

emacsgem() {
emacs $GEMDIR/gems/`$(which ls) $GEMDIR/gems | grep -x $1.* | sort | tail -1`/
}

mategem() {
mate $GEMDIR/gems/`$(which ls) $GEMDIR/gems | grep -x $1.* | sort | tail -1`/
}

1 change: 1 addition & 0 deletions bash/config
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
export PS1="\w$ "
export LC_CTYPE=en_US.UTF-8
export EDITOR="mate -w"
export GEMDIR=`gem env gemdir`

0 comments on commit 9775934

Please sign in to comment.