mirror of https://github.com/bjeanes/dotfiles.git
Stop sudo password prompting when opening new shell because of using alias for gem command which includes sudo
parent
a85641652a
commit
cc8a32db88
2
gemdoc
2
gemdoc
|
@ -1,5 +1,5 @@
|
||||||
# Gem Doc
|
# Gem Doc
|
||||||
export GEMDIR=`gem env gemdir`
|
export GEMDIR=`/usr/bin/gem env gemdir`
|
||||||
gemdoc() {
|
gemdoc() {
|
||||||
open $GEMDIR/doc/`$(which ls) $GEMDIR/doc | grep $1 | sort | tail -1`/rdoc/index.html
|
open $GEMDIR/doc/`$(which ls) $GEMDIR/doc | grep $1 | sort | tail -1`/rdoc/index.html
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue