Skip to content

Commit

Permalink
Merge remote branch 'fork/24'
Browse files Browse the repository at this point in the history
  • Loading branch information
rultor committed Feb 21, 2015
2 parents 8026c6e + 47a0d55 commit 5029a6f
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions jvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,16 @@ jvm() {
esac
}

if [ ! -z "$BASH" ]; then
PROMPT_COMMAND=_jvm-discover-and-set-version
elif [ ! -z "$ZSH_NAME" ]; then
chpwd() {
_jvm-discover-and-set-version
}
fi

main() {
_jvm-discover-and-set-version
if [ ! -z "$BASH" ]; then
PROMPT_COMMAND=_jvm-discover-and-set-version
elif [ ! -z "$ZSH_NAME" ]; then
chpwd() {
_jvm-discover-and-set-version
}
fi
}

main

0 comments on commit 5029a6f

Please sign in to comment.