Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save keepitsimple/d302797edc853889aa88baf390b007fe to your computer and use it in GitHub Desktop.

Select an option

Save keepitsimple/d302797edc853889aa88baf390b007fe to your computer and use it in GitHub Desktop.

Revisions

  1. @mkfares mkfares revised this gist Mar 19, 2022. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion zsh-keyboard-shortucts.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Common zsh Keyboard Shortcuts on macOS Catalina
    # Common zsh Keyboard Shortcuts on macOS

    ### Navigation
    `CTRL + A` : Move the cursor to the beginning of the line
  2. @mkfares mkfares revised this gist Jul 29, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion zsh-keyboard-shortucts.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    ## Common zsh Keyboard Shortcuts on macOS Catalina
    # Common zsh Keyboard Shortcuts on macOS Catalina

    ### Navigation
    `CTRL + A` : Move the cursor to the beginning of the line
  3. @mkfares mkfares revised this gist Jul 27, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions zsh-keyboard-shortucts.md
    Original file line number Diff line number Diff line change
    @@ -18,10 +18,10 @@
    `Backspace` : Delete one character backward
    `CTRL + L` : Clear the screen

    ## Undo
    ### Undo
    `CTRL + _` : Undo the last change

    # Process and Shell
    ### Process and Shell
    `CTRL + C` : Terminate the running foreground process
    `CTRL + Z` : Suspend the running foreground process
    `CTRL + D` : Exit current shell
  4. @mkfares mkfares revised this gist Jul 27, 2020. 1 changed file with 28 additions and 28 deletions.
    56 changes: 28 additions & 28 deletions zsh-keyboard-shortucts.md
    Original file line number Diff line number Diff line change
    @@ -1,44 +1,44 @@
    ## Common zsh Keyboard Shortcuts on macOS Catalina

    ### Navigation
    `CTRL + A` : Move the cursor to the beginning of the line
    `CTRL + E` : Move the cursor to the end of the line
    `OPTION + Left Arrow` : Move the cursor one word backward
    `OPTION + Right arrow` : Move the cursor one word forward
    `Left Arrow` : Move the cursor one character backward
    `Right Arrow` : Move the cursor one character forward
    `CTRL + A` : Move the cursor to the beginning of the line
    `CTRL + E` : Move the cursor to the end of the line
    `OPTION + Left Arrow` : Move the cursor one word backward
    `OPTION + Right arrow` : Move the cursor one word forward
    `Left Arrow` : Move the cursor one character backward
    `Right Arrow` : Move the cursor one character forward

    ### Deletion
    `CTRL + U` : Delete the current line
    `CTRL + K` : Delete from the cursor to the end of the line
    `ESC + Backspace` : Delete one word backward
    `CTRL + W` : Delete one word backward
    `CTRL + D` : Delete one character forward
    `Fn + Backspace` : Delete one character forward
    `Backspace` : Delete one character backward
    `CTRL + L` : Clear the screen
    `CTRL + U` : Delete the current line
    `CTRL + K` : Delete from the cursor to the end of the line
    `ESC + Backspace` : Delete one word backward
    `CTRL + W` : Delete one word backward
    `CTRL + D` : Delete one character forward
    `Fn + Backspace` : Delete one character forward
    `Backspace` : Delete one character backward
    `CTRL + L` : Clear the screen

    ## Undo
    `CTRL + _` : Undo the last change
    `CTRL + _` : Undo the last change

    # Process and Shell
    `CTRL + C` : Terminate the running foreground process
    `CTRL + Z` : Suspend the running foreground process
    `CTRL + D` : Exit current shell
    `CTRL + C` : Terminate the running foreground process
    `CTRL + Z` : Suspend the running foreground process
    `CTRL + D` : Exit current shell

    ### History
    `Up Arrow` : Recall the previous command in history
    `Down Arrow` : Recall the next command in history
    `CTRL + R` : Search the command history
    `CTRL + G` : Escape from command search mode
    `!!` : Execute the last typed command
    `!pw` : Execute the last command in history that begins with pw
    `Up Arrow` : Recall the previous command in history
    `Down Arrow` : Recall the next command in history
    `CTRL + R` : Search the command history
    `CTRL + G` : Escape from command search mode
    `!!` : Execute the last typed command
    `!pw` : Execute the last command in history that begins with pw

    ### Auto-completion
    `TAB` : Auto-complete the typed command
    `TAB TAB` : Show list of commands
    `TAB TAB TAB ...` : Cycle through matched commands
    `TAB` : Auto-complete the typed command
    `TAB TAB` : Show list of commands
    `TAB TAB TAB ...` : Cycle through matched commands


    ### List all Keyboard Shortcuts
    `% bindkey`
    `% bindkey`
  5. @mkfares mkfares renamed this gist Jul 27, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  6. @mkfares mkfares created this gist Jul 27, 2020.
    44 changes: 44 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,44 @@
    ## Common zsh Keyboard Shortcuts on macOS Catalina

    ### Navigation
    `CTRL + A` : Move the cursor to the beginning of the line
    `CTRL + E` : Move the cursor to the end of the line
    `OPTION + Left Arrow` : Move the cursor one word backward
    `OPTION + Right arrow` : Move the cursor one word forward
    `Left Arrow` : Move the cursor one character backward
    `Right Arrow` : Move the cursor one character forward

    ### Deletion
    `CTRL + U` : Delete the current line
    `CTRL + K` : Delete from the cursor to the end of the line
    `ESC + Backspace` : Delete one word backward
    `CTRL + W` : Delete one word backward
    `CTRL + D` : Delete one character forward
    `Fn + Backspace` : Delete one character forward
    `Backspace` : Delete one character backward
    `CTRL + L` : Clear the screen

    ## Undo
    `CTRL + _` : Undo the last change

    # Process and Shell
    `CTRL + C` : Terminate the running foreground process
    `CTRL + Z` : Suspend the running foreground process
    `CTRL + D` : Exit current shell

    ### History
    `Up Arrow` : Recall the previous command in history
    `Down Arrow` : Recall the next command in history
    `CTRL + R` : Search the command history
    `CTRL + G` : Escape from command search mode
    `!!` : Execute the last typed command
    `!pw` : Execute the last command in history that begins with pw

    ### Auto-completion
    `TAB` : Auto-complete the typed command
    `TAB TAB` : Show list of commands
    `TAB TAB TAB ...` : Cycle through matched commands


    ### List all Keyboard Shortcuts
    `% bindkey`