Skip to content

Instantly share code, notes, and snippets.

@chrisyip
Created March 14, 2017 10:27
Show Gist options
  • Select an option

  • Save chrisyip/6b87ae7594c1ca8bc0c7a7a893abf6ac to your computer and use it in GitHub Desktop.

Select an option

Save chrisyip/6b87ae7594c1ca8bc0c7a7a893abf6ac to your computer and use it in GitHub Desktop.

Revisions

  1. chrisyip created this gist Mar 14, 2017.
    7 changes: 7 additions & 0 deletions .zshrc
    Original 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