From 9773734707dd63c2a1de04bcbbd4f26da2c80ecc Mon Sep 17 00:00:00 2001 From: Mike Milkman Date: Fri, 22 Apr 2016 15:42:03 +0300 Subject: [PATCH] Add --silent option to version auto switch commands --- README.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.markdown b/README.markdown index 55c73f0..35a324f 100644 --- a/README.markdown +++ b/README.markdown @@ -201,9 +201,9 @@ Put this into your `$HOME/.bashrc` to enable automatic version swithing whenever cd() { builtin cd "$@" if [[ -f .nvmrc && -r .nvmrc ]]; then - nvm use + nvm use --silent elif [[ `nvm current` != `nvm version default` ]]; then - nvm use default + nvm use --silent default fi } cd . @@ -217,9 +217,9 @@ For example, on Ubuntu it should be placed at the very bottom of `$HOME/.bash_pr cd() { __zsh_like_cd cd "$@" if [[ -f .nvmrc && -r .nvmrc ]]; then - nvm use + nvm use --silent elif [[ `nvm current` != `nvm version default` ]]; then - nvm use default + nvm use --silent default fi } cd .