4 ms·
In bash, you can alternatively replace your shortcuts Ctrl+P → Ctrl+A → Alt+D with `!:1-$`, where 1 is the index of the first argument you want from your
by jmholla 2y ago
In bash, you can alternatively replace your shortcuts
Ctrl+P → Ctrl+A → Alt+D
with `!:1-$`, where 1 is the index of the first argument you want from your previous command.
So:
ls [files ...]
rm !:1-$
I personally find it faster to use bash's history expansion. But, we're talking about subsecond differences here.
- c17r 2y agoYou can also do: $ ls [files ...] $ ^ls^rm