Whenever I accidentally press / +Return. I end up at the root of the current drive, or C:\.
Is there an opposite operation? A shortcut to last location? Anything?
I'm using nushell, on Windows 10.
Whenever I accidentally press / +Return. I end up at the root of the current drive, or C:\.
Is there an opposite operation? A shortcut to last location? Anything?
I'm using nushell, on Windows 10.
According to the Nushell book, you can go to the previous directory using:
cd -
That’s cd and a dash.
This behavior was previously not available for “auto cd” (changing directory just by typing a path). It is now, coming with a future nushell release (probably 0.66.0).
There is no such shortcut.
The most you can do is select the last folder
from the previous prompt and paste it to cd to it.
To remember a folder, you could use the pushd command together with the popd command.
To remember a folder :
pushd
To return to the remembered folder :
popd
These commands use a stack that can remember more than one folder.