plugins/goenv: lint
parent
21f8cdca06
commit
6b54afe765
|
|
@ -30,7 +30,7 @@ eval "$(goenv init - bash)"
|
||||||
# If moving to a directory with a goenv version set, reload the shell
|
# If moving to a directory with a goenv version set, reload the shell
|
||||||
# to ensure the shell environment matches expectations.
|
# to ensure the shell environment matches expectations.
|
||||||
_bash-it-goenv-preexec() {
|
_bash-it-goenv-preexec() {
|
||||||
export GOENV_OLD_VERSION="$(goenv version-name)"
|
GOENV_OLD_VERSION="$(goenv version-name)"
|
||||||
}
|
}
|
||||||
_bash-it-goenv-precmd() {
|
_bash-it-goenv-precmd() {
|
||||||
if [[ -n $GOENV_OLD_VERSION ]] && [[ "$GOENV_OLD_VERSION" != "$(goenv version-name)" ]]; then
|
if [[ -n $GOENV_OLD_VERSION ]] && [[ "$GOENV_OLD_VERSION" != "$(goenv version-name)" ]]; then
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue