Re:How to navigate directories faster with Bash (2015)
by llbeansandrice on Thursday April 22, 2021 @12:11PM
(#26904425)
I know this is a bash thread but zsh/oh-my-zsh will replace !$ with the actual argument when you type a space so you can see and edit it before executing the command.
[ Parent
| on HN ]
Re:How to navigate directories faster with Bash (2015)
by JNRowe on Thursday April 22, 2021 @01:12PM
(#26905194)
bash supports the same, also named magic-space. For bash you can chuck something like "Space: magic-space" in your $INPUTRC, although you'd probably want a guard(see Readline Conditional Constructs in the manpage).
FWIW, zsh without oh-my-zsh can be configured to do too this with "bindkey ' ' magic-space".