diff --git a/README.md b/README.md index eaa7f89f..4e96b713 100644 --- a/README.md +++ b/README.md @@ -850,6 +850,10 @@ cdnvm "$PWD" || exit This alias would search 'up' from your current directory in order to detect a `.nvmrc` file. If it finds it, it will switch to that version; if not, it will use the default version. +If something else already defines a `cd` function, `command cd` skips it. +For example, [`rvm`](https://rvm.io) does this to switch ruby versions; +to keep that working, replace `command cd "$@"` with `__zsh_like_cd cd "$@"`. + ##### zsh This shell function will install (if needed) and `nvm use` the specified Node version when an `.nvmrc` is found, and `nvm use default` otherwise.