3 ms·
You can make this for bash. I have "nd" and "pd", step to next or previous directory in the directory history (and "cd" adds an entry to the history). I like
by jhallenworld 7y ago
You can make this for bash. I have "nd" and "pd", step to next or previous directory in the directory history (and "cd" adds an entry to the history). I like this a bit better then z, but it would be better to have both.
Code is here if anyone interested, look for the funccd, funcnextdir, funcprevdir and associated aliases.
https://github.com/jhallen/joes-sandbox/blob/master/setup/bashrc https://github.com/jhallen/joes-sandbox/blob/master/setup/ba...