Last active
August 13, 2019 12:36
-
-
Save atton/b8a2fa9871bfe28eba2c47fdc9b9b3f5 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $ nodenv init - bash | |
eval export PATH="/Users/atton/.nodenv/shims:${PATH}" | |
export NODENV_SHELL=bash | |
source '/usr/local/Cellar/nodenv/1.3.0/libexec/../completions/nodenv.bash' | |
command nodenv rehash 2>/dev/null | |
nodenv() { | |
local command | |
command="${1:-}" | |
if [ "$#" -gt 0 ]; then | |
shift | |
fi | |
case "$command" in | |
rehash|shell) | |
eval "$(nodenv "sh-$command" "$@")";; | |
*) | |
command nodenv "$command" "$@";; | |
esac | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $ nodenv init - --no-rehash zsh | |
eval export PATH="/Users/atton/.nodenv/shims:${PATH}" | |
export NODENV_SHELL=zsh | |
source '/usr/local/Cellar/nodenv/1.3.0/libexec/../completions/nodenv.zsh' | |
nodenv() { | |
local command | |
command="${1:-}" | |
if [ "$#" -gt 0 ]; then | |
shift | |
fi | |
case "$command" in | |
rehash|shell) | |
eval "$(nodenv "sh-$command" "$@")";; | |
*) | |
command nodenv "$command" "$@";; | |
esac | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# nodenv init - | |
eval export PATH="/Users/atton/.nodenv/shims:${PATH}" | |
export NODENV_SHELL=zsh | |
source '/usr/local/Cellar/nodenv/1.3.0/libexec/../completions/nodenv.zsh' | |
command nodenv rehash 2>/dev/null | |
nodenv() { | |
local command | |
command="${1:-}" | |
if [ "$#" -gt 0 ]; then | |
shift | |
fi | |
case "$command" in | |
rehash|shell) | |
eval "$(nodenv "sh-$command" "$@")";; | |
*) | |
command nodenv "$command" "$@";; | |
esac | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment