![]() ![]() #Print command that will be saved in history Start a history substitution, except when followed by a space, tab, the end of the line, ‘=’ or ‘(’ (when the extglob shell option is enabled using the shopt builtin). If a word designator is supplied without an event specification, the previous command is used as the event.Īfter the optional word designator, you can add a sequence of one or more modifiers, each preceded by a ':'. You may omit word separator ':', if the word designator begins with a '^', '$', '*', '-', or '%'. Process control Bang(!) - The History Expansionīash also has some handy features that use the ! (bang) to allow you to do some funky stuff with bash commands. Use the last word of the previous command ![]() walk forward through the command history)Įxecute the command found via Ctrl+r or Ctrl+s ![]() Recall the last command including the specified character(s)(equivalent to : vim ~/.bash_history). Lower the case of every character from the cursor to the end of the current word.Ĭapitalize the character under the cursor and move to the end of the word.Ĭancel the changes and put back the line as it was in the history (revert) UPPER capitalize every character from the cursor to the end of the current word. Swap the last two words before the cursor. Swap the last two characters before the cursor (typo) Toggle between the start of line and current cursor positionĭelete character before the cursor (backspace)Ĭut the Word before the cursor to the clipboardĬut the Line after the cursor to the clipboard MacOS iTerm 2 users must turn on meta key. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |