I want to accomplish this:
[zsh]$ pwd
/home/user
*[zsh]$ bash # enter to a bash shell at the same time as `cd ~/Desktop`.
[bash]$ pwd
/home/user/Desktop
[bash]$ exit
[zsh]$ pwd
**/home/user
I would like to know if there is any way to enter to the unix shell at the same time as changing a directory to some specific path. It's important that:
- Line
*
is supposed to be a single-line command for entering a shell and changing a directory, - After exist from any new shell, it's expected to return to the latest location as it was before entering to the shell, see line
**
.