Skip to content

Instantly share code, notes, and snippets.

@acamino
Last active August 30, 2025 22:21
Show Gist options
  • Save acamino/2bc8df5e2ed0f99ddbe7a6fddb7773a6 to your computer and use it in GitHub Desktop.
Save acamino/2bc8df5e2ed0f99ddbe7a6fddb7773a6 to your computer and use it in GitHub Desktop.

Revisions

  1. acamino revised this gist Oct 20, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -12,7 +12,7 @@
    - [ ] `ALT + D` — Delete the word after the cursor
    - [x] `CTRL + R` — Search history
    - [ ] `CTRL + G` — Escape from search mode
    - [ ] `CTRL + _` — Undo the last change
    - [ ] `CTRL + -` — Undo the last change
    - [x] `CTRL + L` — Clear screen
    - [ ] `CTRL + S` — Stop output to screen
    - [ ] `CTRL + Q` — Re-enable screen output
  2. acamino revised this gist Oct 20, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    - [ ] `CTRL + U` —(zsh) If you're using the zsh, this will clear the entire line
    - [ ] `CTRL + K` — Clear the characters on the line after the current cursor position
    - [ ] `ESC + [backspace]` — Delete the word in front of the cursor
    - [ ] `CTRL + W` — Delete the word in front of the cursor
    - [x] `CTRL + W` — Delete the word in front of the cursor
    - [ ] `ALT + D` — Delete the word after the cursor
    - [x] `CTRL + R` — Search history
    - [ ] `CTRL + G` — Escape from search mode
  3. acamino revised this gist Oct 20, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@
    - [x] `CTRL + L` — Clear screen
    - [ ] `CTRL + S` — Stop output to screen
    - [ ] `CTRL + Q` — Re-enable screen output
    - [ ] `CTRL + C` — Terminate/kill current foreground process
    - [x] `CTRL + C` — Terminate/kill current foreground process
    - [x] `CTRL + Z` — Suspend/stop current foreground process
    - [ ] `!!` — Execute last command in history
    - [ ] `!abc` — Execute last command in history beginning with abc
  4. acamino revised this gist Oct 20, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@
    - [x] `CTRL + R` — Search history
    - [ ] `CTRL + G` — Escape from search mode
    - [ ] `CTRL + _` — Undo the last change
    - [ ] `CTRL + L` — Clear screen
    - [x] `CTRL + L` — Clear screen
    - [ ] `CTRL + S` — Stop output to screen
    - [ ] `CTRL + Q` — Re-enable screen output
    - [ ] `CTRL + C` — Terminate/kill current foreground process
  5. acamino revised this gist Oct 20, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@
    - [ ] `CTRL + S` — Stop output to screen
    - [ ] `CTRL + Q` — Re-enable screen output
    - [ ] `CTRL + C` — Terminate/kill current foreground process
    - [ ] `CTRL + Z` — Suspend/stop current foreground process
    - [x] `CTRL + Z` — Suspend/stop current foreground process
    - [ ] `!!` — Execute last command in history
    - [ ] `!abc` — Execute last command in history beginning with abc
    - [ ] `!abc:p` — Print last command in history beginning with abc
  6. acamino revised this gist Oct 15, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    ### Shortcut — Action

    - [x] `CTRL + A` — Move to the beginning of the line
    - [ ] `CTRL + E` — Move to the end of the line
    - [x] `CTRL + E` — Move to the end of the line
    - [ ] `CTRL + [left arrow]` — Move one word backward (on some systems this is ALT + B)
    - [ ] `CTRL + [right arrow]` — Move one word forward (on some systems this is ALT + F)
    - [ ] `CTRL + U` — (bash) Clear the characters on the line before the current cursor position
  7. acamino revised this gist Oct 15, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    ### Shortcut — Action

    - [ ] `CTRL + A` — Move to the beginning of the line
    - [x] `CTRL + A` — Move to the beginning of the line
    - [ ] `CTRL + E` — Move to the end of the line
    - [ ] `CTRL + [left arrow]` — Move one word backward (on some systems this is ALT + B)
    - [ ] `CTRL + [right arrow]` — Move one word forward (on some systems this is ALT + F)
  8. acamino revised this gist Oct 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    - [ ] `CTRL + K` — Clear the characters on the line after the current cursor position
    - [ ] `ESC + [backspace]` — Delete the word in front of the cursor
    - [ ] `CTRL + W` — Delete the word in front of the cursor
    - [x] `ALT + D` — Delete the word after the cursor
    - [ ] `ALT + D` — Delete the word after the cursor
    - [x] `CTRL + R` — Search history
    - [ ] `CTRL + G` — Escape from search mode
    - [ ] `CTRL + _` — Undo the last change
  9. acamino revised this gist Oct 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -9,7 +9,7 @@
    - [ ] `CTRL + K` — Clear the characters on the line after the current cursor position
    - [ ] `ESC + [backspace]` — Delete the word in front of the cursor
    - [ ] `CTRL + W` — Delete the word in front of the cursor
    - [ ] `ALT + D` — Delete the word after the cursor
    - [x] `ALT + D` — Delete the word after the cursor
    - [x] `CTRL + R` — Search history
    - [ ] `CTRL + G` — Escape from search mode
    - [ ] `CTRL + _` — Undo the last change
  10. acamino revised this gist Oct 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -10,7 +10,7 @@
    - [ ] `ESC + [backspace]` — Delete the word in front of the cursor
    - [ ] `CTRL + W` — Delete the word in front of the cursor
    - [ ] `ALT + D` — Delete the word after the cursor
    - [ ] `CTRL + R` — Search history
    - [x] `CTRL + R` — Search history
    - [ ] `CTRL + G` — Escape from search mode
    - [ ] `CTRL + _` — Undo the last change
    - [ ] `CTRL + L` — Clear screen
  11. acamino revised this gist Oct 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@
    - [ ] `CTRL + U` —(zsh) If you're using the zsh, this will clear the entire line
    - [ ] `CTRL + K` — Clear the characters on the line after the current cursor position
    - [ ] `ESC + [backspace]` — Delete the word in front of the cursor
    - [ ] `CTRL + WDelete the word in front of the cursor
    - [ ] `CTRL + W` — Delete the word in front of the cursor
    - [ ] `ALT + D` — Delete the word after the cursor
    - [ ] `CTRL + R` — Search history
    - [ ] `CTRL + G` — Escape from search mode
  12. acamino revised this gist Oct 4, 2016. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@
    - [ ] `CTRL + S` — Stop output to screen
    - [ ] `CTRL + Q` — Re-enable screen output
    - [ ] `CTRL + C` — Terminate/kill current foreground process
    - [ ] `CTRL + ZSuspend/stop current foreground process
    - [ ] `CTRL + Z` — Suspend/stop current foreground process
    - [ ] `!!` — Execute last command in history
    - [ ] `!abc` — Execute last command in history beginning with abc
    - [ ] `!abc:p` — Print last command in history beginning with abc
  13. acamino created this gist Oct 4, 2016.
    25 changes: 25 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    ### Shortcut — Action

    - [ ] `CTRL + A` — Move to the beginning of the line
    - [ ] `CTRL + E` — Move to the end of the line
    - [ ] `CTRL + [left arrow]` — Move one word backward (on some systems this is ALT + B)
    - [ ] `CTRL + [right arrow]` — Move one word forward (on some systems this is ALT + F)
    - [ ] `CTRL + U` — (bash) Clear the characters on the line before the current cursor position
    - [ ] `CTRL + U` —(zsh) If you're using the zsh, this will clear the entire line
    - [ ] `CTRL + K` — Clear the characters on the line after the current cursor position
    - [ ] `ESC + [backspace]` — Delete the word in front of the cursor
    - [ ] `CTRL + WDelete the word in front of the cursor
    - [ ] `ALT + D` — Delete the word after the cursor
    - [ ] `CTRL + R` — Search history
    - [ ] `CTRL + G` — Escape from search mode
    - [ ] `CTRL + _` — Undo the last change
    - [ ] `CTRL + L` — Clear screen
    - [ ] `CTRL + S` — Stop output to screen
    - [ ] `CTRL + Q` — Re-enable screen output
    - [ ] `CTRL + C` — Terminate/kill current foreground process
    - [ ] `CTRL + ZSuspend/stop current foreground process
    - [ ] `!!` — Execute last command in history
    - [ ] `!abc` — Execute last command in history beginning with abc
    - [ ] `!abc:p` — Print last command in history beginning with abc

    **Source**: http://www.geekmind.net/2011/01/shortcuts-to-improve-your-bash-zsh.html
    2 changes: 2 additions & 0 deletions config.zsh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    bindkey -e
    bindkey \^u backward-kill-line