![]() If you are an avid iTerm2 user let me know what other settings you customize to make the app better for you. These two settings alone have made iTerm2 much better for me to use, and I’d recommend you give those a try. In iTerm2 set: profile -> keys -> set Esc for both option keys to make the Alt combo’s work. Ctrl U Clears the line before the cursor Ctrl K Clear the line after the cursor Ctrl W Delete the word before the cursor. While you are in the settings another good change is under the general tab to make new tabs open in the current sessions directory. Alt F Move cursor forward one word Alt B Move cursor backward one word Cut, Delete. For example, command left/right to go the start or end of a line, option left/right to move by word, and more. This changes iTerm2 to use the standard keys to move around the line just like any other app. By default, option left arrow doesn’t move by word, instead it inserts some sort of character.Īs I went to figure out how to change this I found the keymap settings and inside the presets is an option for “natural text editing”. I'm trying to navigate by word in the following, for instance: Dir1/Dir2/DirA/Dir4/File I want to be able to jump forward/backward by word, and potentially replace DirA by Dir3. Then you realize you spelled command wrong and need to move the cursor from the end to somewhere in the middle. If you are not familiar with what I’m talking about imagine you are running something like: php artisan custom:commmand -file=really-long-string-or-path-to-uuid-file.txt -anotherflag After finally getting annoyed trying to move the cursor around in a long command I asked a friend how they do it and apparently in Mac’s default Terminal app it’s just option left/right arrow, but that didn’t work for me in iTerm2. Up until now though I’ve only customized the fonts and colors and left the rest of its settings the defaults. ITerm2 is my terminal app of choice and I’ve been using it for years. WordPress too many redirects to wp-admin while using Cloudflare.Statamic SEO Pro with Laravel Controllers.Left direction Keyboard Shortcut: Option . You can move your cursor to the beginning of the line by pressing ctrl a and to. If you are new to iTerm2 and use the default setting, it is worth to try. Remove the period when double spacing on the Mac Disclaimer: I use these commands on MacOS with Z Shell(Zsh) in Iterm2.iTerm2 Settings to Make Your Life Better.iTerm2 Settings to Make Your Life Better.Create a scale model of the room before buying new furniture.How To: Validate an array of form fields with Laravel Multi-pane input via cmd-shift-i, and saved pane/window configurations through cmd-shift-s and cmd-shift-r also come in handy.Enable undo (useful if you type or paste in the wrong command) z
0 Comments
Leave a Reply. |