ITerm is a free command-line application designed for Mac OS users. As an alternative to the system’s own Terminal, it offers a lot of convenience and geeky features. Features such as isolated panels, transparent Windows, powerful regular expression search, autocomplete, clipboard history, snapshot return, and more! If you’re not a Mac user, skip iTerm and go straight to oh-my-zsh for efficiency
Create a high level of appearance Terminal2
What attracted me to iTerm2, among other things, was its cool, customizable interface. Satisfying my visual obsessives while providing convenience should be a must-have tool for every MacOS programmer. I generally have two usage scenarios for using the command line
One, quickly open, execute a command or two, and then close, such as open a file, start the service, etc.
Second, long time using the command line, such as debugging programs, VIM programming and so on.
So, in iTerm2, I will create two Profile configurations.
The first kind of Profile
The second kind of Profile
First need to install an iTerm2, you can click 👉 is me!! 😁
Step.1 Create the first Profile
First, create Profiles in Preperence → Profiles, named HotKey Window
Step.2 Background transparency and blur Settings
Set it in Preperence → Profiles → Window → Window Appearance
Step.3 Window style configuration
Go to Preperence → Profiles → Window → Settings for New Windows
Step 4 set HotKey
Go to Preperence → Profiles → Keys → HotKey
Now that the first Profile configuration is complete, you can press your HotKey to quickly open and hide the command line.
If you need to open a command line window that is used for a long time, press CMD + n, but you will find that the window style is back to the default, so let’s configure the second Profiles.
Step.5 Create a second Profile
We just need to configure the “window style” based on the first window.
In Preperence → Profiles, copy the HotKey Window and name it Default of HotKey Window
Step.6 Window style configuration
Go to Preperence → Profiles → Window → Settings for New Windows
Step.7 Set the default
In Preperence → Profiles, select Default of HotKey Window and set it to Default
At this point, the two profiles are set up.
Shortcut keys for common functions
When using iTerm2, the following shortcut keys for control Windows will be used very frequently, so don’t remember them, and they will form muscle memory if you use them too much.
CMD + n: Create a window
CMD + t: Create a TAB
CMD + D: Create a TAB vertically
CMD + Shift + D: Create a TAB horizontally