Skip to content

Instantly share code, notes, and snippets.

@atton
Last active August 13, 2019 12:36
Show Gist options
  • Save atton/b8a2fa9871bfe28eba2c47fdc9b9b3f5 to your computer and use it in GitHub Desktop.
Save atton/b8a2fa9871bfe28eba2c47fdc9b9b3f5 to your computer and use it in GitHub Desktop.
# $ 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
}
# $ 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
}
# 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