Giter VIP home page Giter VIP logo

iterm-cheat-sheet's Introduction

iTerm Cheat Sheet

How to install

brew update
brew tap caskroom/cask  
brew cask install iterm2
brew cleanup

Commands

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
Resize current splitted pane Ctrl + + Arrow
Set Mark + M
Jump to Mark + J

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 Option + f
Move backward a word Option + b
Clear the screen + k

Cut and Paste

Function Shortcut
Cut from cursor to the end of line Ctrl + k
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 Option + y
Loop through and paste the last argument of previous commands Option + .

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

Bonus tricks

Name the current tab [>]

Title bash snippet

# Add this to your .bash_profile and then:
# $ title tabName
function title {
    echo -ne "\033]0;"$*"\007"
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.