mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-05-10 14:21:50 +00:00
[readme] bash shell integration: Amended example to call cd when booting a terminal (previously only called on cd).
It means that works with for example VS Code's integrated terminal.
This commit is contained in:
parent
7929190e6e
commit
344cc32ac3
@ -514,6 +514,7 @@ cdnvm(){
|
|||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
alias cd='cdnvm'
|
alias cd='cdnvm'
|
||||||
|
cd $PWD
|
||||||
```
|
```
|
||||||
|
|
||||||
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.
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user