Created
March 14, 2017 10:27
-
-
Save chrisyip/6b87ae7594c1ca8bc0c7a7a893abf6ac to your computer and use it in GitHub Desktop.
Revisions
-
chrisyip created this gist
Mar 14, 2017 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ function auto_nvm () { if command -v nvm >/dev/null && [[ -a .nvmrc ]]; then nvm use fi } chpwd_functions=(${chpwd_functions[@]} "auto_nvm") auto_nvm