Post AuDkVk5S4QJDYwQw3E by [email protected] | |
More posts by [email protected] | |
Post #Au3gG9B8fZrZLunoEy by [email protected] | |
0 likes, 1 repeats | |
Quick tip: You can use the last argument of the previous command at the CLi. Th… | |
Post #Au3gSV6KzJAMoqRn6W by [email protected] | |
0 likes, 0 repeats | |
@nixCraft Would this also work with absolute paths? | |
Post #Au3gTCd79Jvzox74fA by [email protected] | |
0 likes, 0 repeats | |
@nixCraft ESC . | |
Post #Au3gcsaMWqF6YARLfs by [email protected] | |
0 likes, 0 repeats | |
Doesn't work if you use #oksh ;) | |
Post #Au3gdM7KjKqc8p5aam by [email protected] | |
0 likes, 0 repeats | |
@nixCraft does it works the same as !! (Double bangs)?That is what I've bee… | |
Post #Au3gnTlP9kSAkfewbI by [email protected] | |
0 likes, 0 repeats | |
@nixCraft Nice. | |
Post #Au3hnMdFlqoMaWM76W by [email protected] | |
0 likes, 0 repeats | |
@nixCraft I always did $_ for this | |
Post #Au3iOQeRn3CJlgaW0W by [email protected] | |
0 likes, 0 repeats | |
@nixCraft Alt . does the same. i.e. typing cd <Alt .> will change to cd f… | |
Post #Au3iQtk4bPbkZROfWC by [email protected] | |
0 likes, 0 repeats | |
@nixCraftomg | |
Post #Au3iSYiBlQIjvQJ7Ng by [email protected] | |
0 likes, 0 repeats | |
@nixCraft Alt-. also, and you can use that to go back a few arguments. | |
Post #Au3iUEyQ7Z51HshY7U by [email protected] | |
0 likes, 0 repeats | |
@Alejandro_P @nixCraft !! is repeat the whole line, isn't it? Sometimes yo… | |
Post #Au3iXihY39vYM6T7oG by [email protected] | |
0 likes, 0 repeats | |
@Alejandro_P @nixCraft (in bash at least,)!! repeats the entire last command!$ … | |
Post #Au3k1wccxRWiAg8vzs by [email protected] | |
0 likes, 1 repeats | |
@nixCraft others have already mentioned the more-powerful Esc,dot and its equiv… | |
Post #Au3l1Emy1pguBACqga by [email protected] | |
0 likes, 0 repeats | |
@nixCraft I often use $_ which is equivalent. Or !:1 which means "first ar… | |
Post #Au3mtX9y2e92kOQ1XE by [email protected] | |
0 likes, 0 repeats | |
@justine @nixCraft Makes sense, as the history commands (!<something>) co… | |
Post #Au3oP4w0cLEoQgUm1I by [email protected] | |
0 likes, 1 repeats | |
@nixCraft oh, interesting: bash and zsh count from different edges when it come… | |
Post #Au3ypxmsIXoDcfgIWu by [email protected] | |
0 likes, 0 repeats | |
@nixCraft I prefer Alt-.In fish there's also Alt-up. | |
Post #Au41saq6NGM3BM8VjU by [email protected] | |
0 likes, 0 repeats | |
@nixCraft Add to that !! for the entire previous command.Oh yeah, and if you ru… | |
Post #AuDkVk5S4QJDYwQw3E by [email protected] | |
0 likes, 0 repeats | |
@nixCraft It's a bit more complicated with the fish shell, but fwiw: alias … |