I will try to sum up some of (my) most used features:
1. "!!" Refer to the previous command.
2. "!n" Refer to command line n.
3. "!?str?" Refer to the most recent command containing str.
4. "^previous_word^replacement^"
Repeat the previous command line replacing
the string previous_word with the string
replacement.
but u might already know this! for command autocomplete there are word designators and modifiers. for eg: case 4 can be written as "!:s/previous_word/replacement/"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.