20 ms·
Not sure that would work everywhere but !$ definitely does for retrieving the last arg of the last command. 40 years of muscle memory right there
by smackeyacky 3y ago
Not sure that would work everywhere but !$ definitely does for retrieving the last arg of the last command. 40 years of muscle memory right there
- bierjunge 3y agoNobody mentions $_ ? It gives you the last argument used, so: cat filename.txt grep "what I want" $_ expands "$_" to "filename.txt"
- penguin_booze 3y agoAlt + . is a readline binding, so that's available wherever GNU readline is used. Immediate examples that come to mind are Python PDB shell and GDB.
- cassepipe 3y agoAnd thus you get vim modes there too much if you set your .inputrc for it !