Skip to content

Commit

Permalink
Properly source rcfile when running a command directly
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Feb 28, 2012
1 parent 931a76d commit d5942a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nave.sh
Expand Up @@ -384,7 +384,7 @@ nave_use () {
npm_config_prefix="$prefix" \
NODE_PATH="$lib" \
NAVE_LOGIN="" \
"$SHELL" -c "$(enquote_all "$@")" --rcfile "$NAVE_DIR/naverc"
"$SHELL" -c ". $(enquote_all $NAVE_DIR/naverc); $(enquote_all "$@")"
hash -r
else
hash -r
Expand Down Expand Up @@ -443,7 +443,7 @@ nave_named () {
NAVENAME="$name" \
NODE_PATH="$lib" \
NAVE_LOGIN="" \
"$SHELL" -c "$(enquote_all "$@")" --rcfile "$NAVE_DIR/naverc"
"$SHELL" -c ". $(enquote_all $NAVE_DIR/naverc); $(enquote_all "$@")"
else
NAVEPATH="$bin" \
NAVELVL=$lvl \
Expand Down

0 comments on commit d5942a7

Please sign in to comment.