3 ms·
At least in zsh, there are also !:1 for the first argument, et cetera with the rest of natural numbers, and something like !:* for all the arguments without the
by aasasd 4y ago
At least in zsh, there are also !:1 for the first argument, et cetera with the rest of natural numbers, and something like !:* for all the arguments without the command.
The generic form is !n:m for n-th last command line and m-th argument, with an omitted n being a shortcut for the last line.
Not sure if all of this works the same in bash.
- senjin 4y agoI use zsh so this is also going in my toolbox. I think I've reached for !:* in the past and didn't know it so this is useful
- deleted 4y ago[deleted]