Use fish shell, then alt + <- (left arrow) - voila, previous directory location
2 key presses ;)

For even more power,
Use fish
Install fisher
curl -sL https://raw.githubusercontent.com/jorgebucaran/fisher/main/functions/fisher.fish | source && fisher install jorgebucaran/fisher
Install z
fisher install jethrokuan/z

Then jump everywhere you've been, with z <partial dirname> ;)



On 27.04.2026 12:42, dan wrote:
Thank u Chris for the "cd -".. five keystrokes are indeed too too
long.. :)

I tried directly from the keyboard shorcuts applet of XFCE but nothing.

I then tried going for the custom command but dummie, normal user or
root user I always get only the path displayed as the max result. There
is no change of path happening.

--
dan
bsd.numode.eu


Christian Schulte <[email protected]> wrote:

Am 25.04.2026 um 18:09 schrieb dan:
> What I really miss in my shy mode to hack ksh is a shortcut (eg.
> CTRL+BACKSPACE) to jump back to the previous path used.
Are you heading for fewer keystrokes? That's two keystrokes for
'CTRL-BACKSPACE'. 'cd -' is five keystrokes. You could setup a one
character alias to 'cd -' getting that down to two keystrokes as well.
Although that makes you use custom commands you'll then need to setup
everywhere else to not get mad. Not sure this is clever, though.

Regards,

Reply via email to