D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
usr
/
libexec
/
nodenv
/
Filename :
nodenv-sh-rehash
back
Copy
#!/usr/bin/env bash set -e [ -n "$NODENV_DEBUG" ] && set -x # Provide nodenv completions if [ "$1" = "--complete" ]; then exec nodenv-rehash --complete fi shell="$(basename "${NODENV_SHELL:-$SHELL}")" # When nodenv shell integration is enabled, delegate to nodenv-rehash, # then tell the shell to empty its command lookup cache. nodenv-rehash case "$shell" in fish ) # no rehash support ;; * ) echo "hash -r 2>/dev/null || true" ;; esac