![]() You can mark a location in a session with cmd-shift-M and then jump back to it with cmd-shift-J. You can add exceptions if you don't want certain combinations to be remapped (for example, cmd-tab) by adding a new global shortcut with the action "Do Not Remap" and the keystroke of the (unremapped) key you wish to keep unaffected by modifier remapping. Set Left option key to Left command key and Left command key to Left option key (and do the same for Right command and Right option if you please). One common need is to exchange cmd and option. You have separate control over left and right command and option keys. Pressing the hotkey will drop a terminal window down from the top of the screen, and pressing it again (or clicking in any other window) causes it to disappear. A new profile will be created that is optimized for the feature. Then check "hotkey toggles a dedicated window with profile:". Click in the field and enter the key combination you'd like to use. Enable "Show/Hide iTerm2 with a system-wide hotkey". To enable this feature, go to Preferences > Keys. This window is called the "hotkey window" and is most commonly used for occasional administrative tasks. ITerm2 offers a special terminal window that is always available with a single keystroke. Pressing the shortcut again restores the hidden panes. You can "maximize" the current pane-hiding all others in that tab-with cmd-shift-enter. You can navigate among split panes with cmd-opt-arrow or cmd. The shortcuts cmd-d and cmd-shift-d divide an existing session vertically or horizontally, respectively. ITerm2 allows you to divide a tab into many rectangular "panes", each of which is a different terminal session. ![]() In Prefs > Profiles > Keys you can assign keys to move the beginning or end of the selection by a single character, word, or line. At most one line of text can be selected this way. To move the beginning of the selection to the left, press shift-tab. Then press tab and the end of the selection will advance by a word. Enter the beginning of the text you wish to copy and the find feature will select it in your window. To select text without using the mouse, press cmd-f to open the find field. Text selection by mouse is described later in General Usage section. Mute #xpost on one.There are two ways to select text to copy to the clipboard: you can use the mouse, or you can use the find feature's "mouseless copy" feature. Related Reading: Make iTerm 2 more Mac-likeįollow the author as on Twitter and on App.Net. Is it not wonderful that we can each find our own way out of an unlimited number of ways to do the same thing, and all be cool about it. Or you could even use the free Shuttle app that puts your list of SSH sites in your menu bar. If you have Alfred 2 you could use scripts in workflows to launch a new SSH terminal. If you have Keyboard Maestro, you could create AppleScripts to create new terminal windows and launch SSH sessions. I used to do this until I found these profiles. You could use TextExpander macros, but that requires you to create a new terminal first, more keystrokes. That way my eye can sense different terminals by the slight color variances as well. I also slightly change the terminal background color and the colors used in the prompt, not enough to make it garish, but enough to tint the black and change the look. # \u -> user, \W is basename, the rest are terminal \\$ ' bash_profile or whichever file configures your shell (In this case, the colloquial name is Farragut). I change the PS1 on each server to show the colloquial name, so at a glance you can see which server the terminal window represents. ![]() To activate a new terminal tab and SSH into that server, just press the shortcut key. Set the shortcut key you want to use, and input the full SSH command: ssh -R 52698:localhost:52698 -R port mapping enables me to use rmate from these terminals. I name these after the my server colloquial names (because who can remember those IT names like ). In iTerm 2 preferences, access profiles and add a new profile. You can SSH to any of your servers by pressing a single keystroke, cool huh? For example, to access my Farragut server in a new iTerm 2 tab, I press ⌃⌘F, to access Hipper, ⌃⌘H. Or really, I do this so often I needed a faster way to do this.Įnter iTerm 2 profiles with shortcut keys. I have a bunch of Linux boxes that I need to access via SSH, whether to install things, start or stop processes or browse log files.īut it is a pain to have to launch a new terminal window and type in the whole SSH command line: $ ssh I am that lazy.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |