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
# loader functions. place this in your fish functions directory. call it in your config.fish file | |
function load_nvm --on-variable="PWD" | |
set -l default_node_version "system" | |
set -l node_version (nvm current) | |
set -l nvmrc_path (nvm_find_nvmrc) | |
if test -n "$nvmrc_path" | |
set -l nvmrc_node_version (nvm_find_nvmrc_version) | |
if test "$nvmrc_node_version" != "$node_version" | |
set -l use_status (nvm use $nvmrc_node_version 2>&1) |
OlderNewer