dvm: improve bash profile caveats (#2018)

This commit is contained in:
Ruurd Pels 2016-06-16 23:06:56 +02:00 committed by Mike McQuaid
parent ec67fc9038
commit 0a8243f82f

View file

@ -30,7 +30,9 @@ class Dvm < Formula
def caveats; <<-EOS.undent
dvm is a shell function, and must be sourced before it can be used.
Add the following command to your bash profile:
. "$(brew --prefix dvm)/dvm.sh"
[[ -s "$(brew --prefix dvm)/dvm.sh" ]] && source "$(brew --prefix dvm)/dvm.sh"
EOS
end