Skip to content

Instantly share code, notes, and snippets.

@jjasser
Forked from nobitagit/iterm2.md
Created March 13, 2019 04:13
Show Gist options
  • Save jjasser/96e99189f17b3f33780e9b75b8db5aa7 to your computer and use it in GitHub Desktop.
Save jjasser/96e99189f17b3f33780e9b75b8db5aa7 to your computer and use it in GitHub Desktop.

Revisions

  1. @nobitagit nobitagit revised this gist Feb 15, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iterm2.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@

    **This gist has been moved [to a Github repo](https://github.com/nobitagit/iterm-cheat-sheet/blob/master/README.md), so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.**
    **This gist has been moved [to its own Github repo](https://github.com/nobitagit/iterm-cheat-sheet/blob/master/README.md), so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.**

    Tabs and Windows
    ================
  2. @nobitagit nobitagit revised this gist Feb 15, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iterm2.md
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@

    **This gist has moved [here](https://github.com/nobitagit/iterm-cheat-sheet/blob/master/README.md), so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.**
    **This gist has been moved [to a Github repo](https://github.com/nobitagit/iterm-cheat-sheet/blob/master/README.md), so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.**

    Tabs and Windows
    ================
  3. @nobitagit nobitagit revised this gist Feb 15, 2019. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion iterm2.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    This has moved [here](https://github.com/nobitagit/iterm-cheat-sheet/blob/master/README.md), so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.

    **This gist has moved [here](https://github.com/nobitagit/iterm-cheat-sheet/blob/master/README.md), so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.**

    Tabs and Windows
    ================
  4. @nobitagit nobitagit revised this gist Feb 1, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    This has moved [here](https://github.com/nobitagit/iterm-cheat-sheet/blob/master/README.md), so it's easier to contribute with additions and corrections. Please open a PR there if you see any mistake, I don't track comments on here as there's no notification system for gists AFAIK. Thanks.

    Tabs and Windows
    ================
    **Function** | **Shortcut**
  5. @nobitagit nobitagit revised this gist Feb 1, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iterm2.md
    Original file line number Diff line number Diff line change
    @@ -62,7 +62,7 @@ Bonus tricks
    ============

    Name the current tab in iTerm. [>](https://superuser.com/a/599156/325858)
    ```
    ```sh
    # Add this to your .bash_profile and then:
    # $ title tabName
    function title {
  6. @nobitagit nobitagit revised this gist Feb 1, 2019. 1 changed file with 14 additions and 1 deletion.
    15 changes: 14 additions & 1 deletion iterm2.md
    Original file line number Diff line number Diff line change
    @@ -55,4 +55,17 @@ Search the Command History
    Search as you type | `Ctrl` + `r` and type the search term; Repeat `Ctrl` + `r` to loop through result
    Search the last remembered search term | `Ctrl` + `r` twice
    End the search at current history entry | `Ctrl` + `y`
    Cancel the search and restore original line | `Ctrl` + `g`
    Cancel the search and restore original line | `Ctrl` + `g`


    Bonus tricks
    ============

    Name the current tab in iTerm. [>](https://superuser.com/a/599156/325858)
    ```
    # Add this to your .bash_profile and then:
    # $ title tabName
    function title {
    echo -ne "\033]0;"$*"\007"
    }
    ```
  7. @nobitagit nobitagit revised this gist Dec 2, 2016. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -12,6 +12,7 @@ Split Window Horizontally (same profile) | `⌘` + `D`
    Split Window Vertically (same profile) | `` + `d`
    Split Window Horizontally (new profile) | `Option` + `` + `H`
    Split Window Vertically (new profile) | `Option` + `` + `V`
    Resize current splitted pane | `Ctrl` + `` + `Arrow`
    Set Mark | `` + `M`
    Jump to Mark | `` + `J`

  8. @helger helger revised this gist Jul 8, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -33,7 +33,7 @@ Move to the start of line | `Ctrl` + `a`
    Move to the end of line | `Ctrl` + `e`
    Move forward a word | `Option` + `f`
    Move backward a word | `Option` + `b`
    Clear the screen | `Option` + `l`
    Clear the screen | `` + `k`

    Cut and Paste
    =============
    @@ -54,4 +54,4 @@ Search the Command History
    Search as you type | `Ctrl` + `r` and type the search term; Repeat `Ctrl` + `r` to loop through result
    Search the last remembered search term | `Ctrl` + `r` twice
    End the search at current history entry | `Ctrl` + `y`
    Cancel the search and restore original line | `Ctrl` + `g`
    Cancel the search and restore original line | `Ctrl` + `g`
  9. @helger helger revised this gist Jul 8, 2012. 1 changed file with 7 additions and 7 deletions.
    14 changes: 7 additions & 7 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -31,21 +31,21 @@ Moving Faster
    -------- | --------
    Move to the start of line | `Ctrl` + `a`
    Move to the end of line | `Ctrl` + `e`
    Move forward a word | `Meta` + `f`
    Move backward a word | `Meta` + `b`
    Clear the screen | `Meta` + `l`
    Move forward a word | `Option` + `f`
    Move backward a word | `Option` + `b`
    Clear the screen | `Option` + `l`

    Cut and Paste
    =============
    **Function** | **Shortcut**
    -------- | --------
    Cut from cursor to the end of line | `Ctrl` + `k`
    Cut from cursor to the end of word | `Meta` + `d`
    Cut from cursor to the start of word | `Meta` + `Backspace`
    Cut from cursor to the end of word | `Option` + `d`
    Cut from cursor to the start of word | `Option` + `Backspace`
    Cut from cursor to previous whitespace | `Ctrl` + `w`
    Paste the last cut text | `Ctrl` + `w`
    Loop through and paste previously cut text | `Meta` + `y`
    Loop through and paste the last argument of previous commands | `Meta` + `.`
    Loop through and paste previously cut text | `Option` + `y`
    Loop through and paste the last argument of previous commands | `Option` + `.`

    Search the Command History
    ==========================
  10. @helger helger revised this gist Jul 8, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iterm2.md
    Original file line number Diff line number Diff line change
    @@ -51,7 +51,7 @@ Search the Command History
    ==========================
    **Function** | **Shortcut**
    -------- | --------
    Search as you type. `Ctrl` + `r` and type the search term; Repeat `Ctrl` + `r` to loop through result
    Search as you type | `Ctrl` + `r` and type the search term; Repeat `Ctrl` + `r` to loop through result
    Search the last remembered search term | `Ctrl` + `r` twice
    End the search at current history entry | `Ctrl` + `y`
    Cancel the search and restore original line | `Ctrl` + `g`
  11. @helger helger revised this gist Jul 8, 2012. 1 changed file with 12 additions and 12 deletions.
    24 changes: 12 additions & 12 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -2,18 +2,18 @@ Tabs and Windows
    ================
    **Function** | **Shortcut**
    -------- | --------
    previous tab | ⌘ + left arrow
    next tab | ⌘ + right arrow
    go to tab | + number
    go to window | + Option + Number
    go to split pane by direction | + Option + arrow
    go to split pane by order of use | + ] , + [
    split window horizontally (same profile) | + D
    split window vertically (same profile) | + d
    split window horizontally (new profile) | Option + + H
    split window vertically (new profile) | Option + + V
    Set Mark | + M
    Jump to Mark | + J
    Previous Tab | ``+ `Left Arrow`
    Next Tab | ``+ `Right Arrow`
    Go to Tab | `` + `Number`
    Go to Window | `` + `Option` + `Number`
    Go to Split Pane by Direction | `` + `Option` + `Arrow`
    Go to Split Pane by Order of Use | `` + `]` , `` + `[`
    Split Window Horizontally (same profile) | `` + `D`
    Split Window Vertically (same profile) | `` + `d`
    Split Window Horizontally (new profile) | `Option` + `` + `H`
    Split Window Vertically (new profile) | `Option` + `` + `V`
    Set Mark | `` + `M`
    Jump to Mark | `` + `J`

    Basic Moves
    ===========
  12. @helger helger revised this gist Jul 8, 2012. 1 changed file with 35 additions and 2 deletions.
    37 changes: 35 additions & 2 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    Tabs and Windows
    ================
    **Function** | **Shortcut**
    -------- | --------
    previous tab | ⌘ + left arrow
    @@ -13,12 +15,43 @@ split window vertically (new profile) | Option + ⌘ + V
    Set Mark | ⌘ + M
    Jump to Mark | ⌘ + J

    Navigation
    ==========
    Basic Moves
    ===========
    **Function** | **Shortcut**
    -------- | --------
    Move back one character | `Ctrl` + `b`
    Move forward one character | `Ctrl` + `f`
    Delete current character | `Ctrl` + `d`
    Delete previous character | `Backspace`
    Undo | `Ctrl` + `-`

    Moving Faster
    =============
    **Function** | **Shortcut**
    -------- | --------
    Move to the start of line | `Ctrl` + `a`
    Move to the end of line | `Ctrl` + `e`
    Move forward a word | `Meta` + `f`
    Move backward a word | `Meta` + `b`
    Clear the screen | `Meta` + `l`

    Cut and Paste
    =============
    **Function** | **Shortcut**
    -------- | --------
    Cut from cursor to the end of line | `Ctrl` + `k`
    Cut from cursor to the end of word | `Meta` + `d`
    Cut from cursor to the start of word | `Meta` + `Backspace`
    Cut from cursor to previous whitespace | `Ctrl` + `w`
    Paste the last cut text | `Ctrl` + `w`
    Loop through and paste previously cut text | `Meta` + `y`
    Loop through and paste the last argument of previous commands | `Meta` + `.`

    Search the Command History
    ==========================
    **Function** | **Shortcut**
    -------- | --------
    Search as you type. `Ctrl` + `r` and type the search term; Repeat `Ctrl` + `r` to loop through result
    Search the last remembered search term | `Ctrl` + `r` twice
    End the search at current history entry | `Ctrl` + `y`
    Cancel the search and restore original line | `Ctrl` + `g`
  13. @helger helger revised this gist Jul 8, 2012. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@ Navigation
    **Function** | **Shortcut**
    -------- | --------
    Move back one character | `Ctrl` + `b`
    Move forward one character | Ctrl + f
    Delete current character | Ctrl + d
    Delete previous character | Backspace
    Undo | Ctrl + -
    Move forward one character | `Ctrl` + `f`
    Delete current character | `Ctrl` + `d`
    Delete previous character | `Backspace`
    Undo | `Ctrl` + `-`
  14. @helger helger revised this gist Jul 8, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iterm2.md
    Original file line number Diff line number Diff line change
    @@ -17,7 +17,7 @@ Navigation
    ==========
    **Function** | **Shortcut**
    -------- | --------
    Move back one character | Ctrl + b
    Move back one character | `Ctrl` + `b`
    Move forward one character | Ctrl + f
    Delete current character | Ctrl + d
    Delete previous character | Backspace
  15. @helger helger revised this gist Jul 8, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -15,6 +15,7 @@ Jump to Mark | ⌘ + J

    Navigation
    ==========
    **Function** | **Shortcut**
    -------- | --------
    Move back one character | Ctrl + b
    Move forward one character | Ctrl + f
  16. @helger helger revised this gist Jul 8, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iterm2.md
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ Jump to Mark | ⌘ + J

    Navigation
    ==========

    -------- | --------
    Move back one character | Ctrl + b
    Move forward one character | Ctrl + f
    Delete current character | Ctrl + d
  17. @helger helger revised this gist Jul 8, 2012. 1 changed file with 9 additions and 0 deletions.
    9 changes: 9 additions & 0 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -12,3 +12,12 @@ split window horizontally (new profile) | Option + ⌘ + H
    split window vertically (new profile) | Option + ⌘ + V
    Set Mark | ⌘ + M
    Jump to Mark | ⌘ + J

    Navigation
    ==========

    Move back one character | Ctrl + b
    Move forward one character | Ctrl + f
    Delete current character | Ctrl + d
    Delete previous character | Backspace
    Undo | Ctrl + -
  18. @sockmonk sockmonk revised this gist Oct 3, 2011. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,9 @@ go to tab | ⌘ + number
    go to window | ⌘ + Option + Number
    go to split pane by direction | ⌘ + Option + arrow
    go to split pane by order of use | ⌘ + ] , ⌘ + [
    split window horizontally (same profile) | Shift + ⌘ + d
    split window horizontally (same profile) | ⌘ + D
    split window vertically (same profile) | ⌘ + d
    split window horizontally (new profile) | Option + Shift + ⌘ + h
    split window vertically (new profile) | Option + Shift + ⌘ + v
    Set Mark | Shift + ⌘ + M
    Jump to Mark | Shift + ⌘ + J
    split window horizontally (new profile) | Option + ⌘ + H
    split window vertically (new profile) | Option + ⌘ + V
    Set Mark | ⌘ + M
    Jump to Mark | ⌘ + J
  19. @sockmonk sockmonk revised this gist Oct 3, 2011. 1 changed file with 4 additions and 4 deletions.
    8 changes: 4 additions & 4 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -6,9 +6,9 @@ go to tab | ⌘ + number
    go to window | ⌘ + Option + Number
    go to split pane by direction | ⌘ + Option + arrow
    go to split pane by order of use | ⌘ + ] , ⌘ + [
    split window horizontally (same profile) | shift + ⌘ + d
    split window vertically (same profile | ⌘ + d
    split window horizontally (new profile) | Option + Shift + ⌘ + H
    split window vertically (new profile) | Option + Shift + ⌘ + V
    split window horizontally (same profile) | Shift + ⌘ + d
    split window vertically (same profile) | ⌘ + d
    split window horizontally (new profile) | Option + Shift + ⌘ + h
    split window vertically (new profile) | Option + Shift + ⌘ + v
    Set Mark | Shift + ⌘ + M
    Jump to Mark | Shift + ⌘ + J
  20. @sockmonk sockmonk revised this gist Oct 3, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iterm2.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    *Function* | *Shortcut*
    **Function** | **Shortcut**
    -------- | --------
    previous tab | ⌘ + left arrow
    next tab | ⌘ + right arrow
  21. @sockmonk sockmonk revised this gist Oct 3, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion iterm2.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    Function | Shortcut
    *Function* | *Shortcut*
    -------- | --------
    previous tab | ⌘ + left arrow
    next tab | ⌘ + right arrow
  22. @sockmonk sockmonk revised this gist Oct 3, 2011. 1 changed file with 12 additions and 32 deletions.
    44 changes: 12 additions & 32 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -1,34 +1,14 @@
    Function | Shortcut
    -------- | --------
    # previous tab | ⌘ + left arrow
    # next tab | ⌘ + right arrow

    # go to tab
    ⌘ + number

    # go to window
    ⌘ + Option + Number

    # go to split pane by direction
    ⌘ + Option + arrow

    # go to split pane by order of use
    ⌘ + ] , ⌘ + [

    #split window horizontally (same profile)
    shift + ⌘ + d

    # split window vertically (same profile
    ⌘ + d

    # split window horizontally (new profile)
    Option + Shift + ⌘ + H

    # split window vertically (new profile)
    Option + Shift + ⌘ + V

    # Set Mark
    Shift + ⌘ + M

    # Jump to Mark
    Shift + ⌘ + J
    previous tab | ⌘ + left arrow
    next tab | ⌘ + right arrow
    go to tab | ⌘ + number
    go to window | ⌘ + Option + Number
    go to split pane by direction | ⌘ + Option + arrow
    go to split pane by order of use | ⌘ + ] , ⌘ + [
    split window horizontally (same profile) | shift + ⌘ + d
    split window vertically (same profile | ⌘ + d
    split window horizontally (new profile) | Option + Shift + ⌘ + H
    split window vertically (new profile) | Option + Shift + ⌘ + V
    Set Mark | Shift + ⌘ + M
    Jump to Mark | Shift + ⌘ + J
  23. @sockmonk sockmonk revised this gist Oct 3, 2011. 1 changed file with 4 additions and 5 deletions.
    9 changes: 4 additions & 5 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,7 @@
    # previous tab
    ⌘ + left arrow

    # next tab
    ⌘ + right arrow
    Function | Shortcut
    -------- | --------
    # previous tab | ⌘ + left arrow
    # next tab | ⌘ + right arrow

    # go to tab
    ⌘ + number
  24. @sockmonk sockmonk revised this gist Oct 3, 2011. 1 changed file with 35 additions and 2 deletions.
    37 changes: 35 additions & 2 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,35 @@
    #split window horizontally
    ⌘ + d
    # previous tab
    ⌘ + left arrow

    # next tab
    ⌘ + right arrow

    # go to tab
    ⌘ + number

    # go to window
    ⌘ + Option + Number

    # go to split pane by direction
    ⌘ + Option + arrow

    # go to split pane by order of use
    ⌘ + ] , ⌘ + [

    #split window horizontally (same profile)
    shift + ⌘ + d

    # split window vertically (same profile
    ⌘ + d

    # split window horizontally (new profile)
    Option + Shift + ⌘ + H

    # split window vertically (new profile)
    Option + Shift + ⌘ + V

    # Set Mark
    Shift + ⌘ + M

    # Jump to Mark
    Shift + ⌘ + J
  25. @chelmertz chelmertz revised this gist Jul 8, 2011. 2 changed files with 2 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1 +0,0 @@
    ⌘ + d => split window horizontally
    2 changes: 2 additions & 0 deletions iterm2.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    #split window horizontally
    ⌘ + d
  26. @chelmertz chelmertz created this gist Jul 8, 2011.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    ⌘ + d => split window horizontally