I am using Mac software (1)-terminal environment iterm2

Source: Internet
Author: User

Some friends have asked me to share the Mac software I was using. If I have time today, I will write about it. It may not only be software, but also some configuration or tools, or the environment is more suitable. Some may be included in one sentence, and some will be described in detail. It is not classified. You can write it out when you think of it. If it is long enough, several articles will be written.

Iterm2 + zsh + tmux terminal environment iterm2

In fact, the terminal of OS X has been well done, but the iterm2 function is still more powerful. Briefly describe the following advantages and common functions:

  • Open source is free of charge.

  • The compatibility is better than the default terminal.
    • When Remote use is frequently required, the default terminal is often incompatible when VI is used, and iterm2 is obviously better in this respect.
  • Rich shortcut keys.
    • Digit + number: Switch the tab. Hover + direction key switch tab by direction.
    • ⌘ + enter: Switch to full screen
    • ⌘ + f: Search. Regular Expressions are supported. The searched content is automatically copied. The process of removing the need to go to pipeline + C. Similarly, the content that you select with the mouse will be automatically copied, or you can paste it directly in the middle of the mouse. In general, enter the search keyword, and then useshift-tabOrtabAuto-completion on left and right,option + enterThe search result is automatically typed and copied to the clipboard.
    • ⌘ + d: Vertical Split screen,⌘ + shift + d: Horizontal split screen. Use⌘ + ]And⌘ + [Directly switch between the recently used split screens.Direction + opt + direction keySwitch to the split screen at the specified position.
    • ⌘ + t: New tab
    • ⌘ + w: Close the current tab
    • ⌘ + ;: Auto-completion history command. :

    • ⌘ + shift + h: Clipboard history,

    • ctrl + u: Clears the current row. Note that the default Ctrl + u for Mac is to clear the content from the current cursor to the beginning of the line, and clear the line directly in iterm2. Iterm2 also supports other commonly used operation commands, which are also useful in MAC:
      • ctrl + a: To the beginning of the line
      • ctrl + e: End of line
      • ctrl + f/b: Forward and backward, which is equivalent to the left and right direction keys, but it is obviously faster than moving away the direction keys
      • ctrl + p: The previous command, equivalent to the direction key
      • ctrl + r: SEARCH Command history, which should be familiar to everyone
      • ctrl + d: Delete the current character
      • ctrl + h: Delete previous characters
      • ctrl + w: Delete words before the cursor
      • ctrl + k: Delete to the end of the text
      • ctrl + t: Return the text at the cursor
    • ⌘ + —/+/0: Adjust the font size
    • ⌘ + r: The clear screen is actually rolled to a new screen and is not cleared. CTRL + l can also be used.
  • More practical functions.
    • Exposé tag⌘ + opt + e Enable exposé and support searching.
    • Global outbound call shortcut.
    •  
    • ⌘ + /: Find the current cursor position, which is sometimes useful.
    • shift + ⌘ + s: Save the snapshot of the current window.
    • ⌘ + opt + b: Snapshot playback. You can play back your operations based on the timeline. You can drag the timeline below, or press the left and right arrow keys.
  • Supports 256 colors. Easy to configure the VI color. However, for some servers that far exceed 256 colors, you only need to set it to xterm in prefences-> profiles-> terminal.

I did not expect to write so much for iterm2, but I wrote a little lower draft, and there must be more zsh + tmux later than here. Next, continue.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.