I’ve said it before: iterm2 is one of the two reasons I feel so much more productive on mac compared to Windows or Ubuntu The other one being quicklook (space preview of files)
Weird thing to say, considering both Windows and Linux-based systems are way more developer-friendly. (Windows due to VS and the rest of MS resources/docs/tools, Linux due to its package management systems natively supporting just about anything you could ever need for development. For macOS to compete, you need a plethora of best-effort or paid tools that don’t come from Apple).
Little known features of iTerm2
91–100 of 156 posts
Re: Little known features of iTerm2
#92Question. Do you know how to get iTerm2 to open on split into the same directory that it was in like in Terminator on Ubuntu? Currently it always open to home directory whether I do a vertical/horizontal split.
Go to Preferences->Profiles->Default and find the option over on the right for "Working Directory". Then set it to "Reuse previous session's directory". Then for me Cmd+D and Cmd+Shift+D (split with current profile) gives the same current directory.
I want new windows (which I rarely use) and new tabs to be my home directory, but split panes to be the directory I was in when I split. Works wonders.
Re: Little known features of iTerm2
#93Not sure whether or not this is a little-known feature. iTerm2 has _fantastic_ integration with tmux (software used for persisting a terminal session across multiple logins). Tmux can be a pretty complex piece of software, but iTerm can basically wrap it all up into a nice package. You don't need to know anything at all about tmux to use iTerm's tmux integration. If you're SSHed into a server that has tmux installed,…
I really wish some Linux-based terminal emulator would copy this feature.
Re: Little known features of iTerm2
#94Earlier quoted context omitted.
Weird thing to say, considering both Windows and Linux-based systems are way more developer-friendly. (Windows due to VS and the rest of MS resources/docs/tools, Linux due to its package management systems natively supporting just about anything you could ever need for development. For macOS to compete, you need a plethora of best-effort or paid tools that don’t come from Apple).
What's your iTerm2 replacement on Windows? I use Hyper right now but the clear command doesn't even work correctly.
Re: Little known features of iTerm2
#95Not sure whether or not this is a little-known feature. iTerm2 has _fantastic_ integration with tmux (software used for persisting a terminal session across multiple logins). Tmux can be a pretty complex piece of software, but iTerm can basically wrap it all up into a nice package. You don't need to know anything at all about tmux to use iTerm's tmux integration. If you're SSHed into a server that has tmux installed,…
I use iTerm2 with tmux every day (but I don’t ssh into machines often nowadays) and I feel oppositely — I don’t get the attraction of the tmux integration. But maybe I still haven’t understood it, so please feel free to tell me what I’m missing. For me, the purpose of using tmux on my laptop is session, window, and pane management. (Perhaps my favorite tmux feature is zoom-pane.) So I find that the iTerm2 tmux integr…
Re: Little known features of iTerm2
#96Earlier quoted context omitted.
Not a vim user but iTerm2 settings have a section for rebinding modifier keys, (plus you also have karabiner-elements)
I don't have karabiner-elements, but doesn't it basically just remap keys across your whole system (much like my mechanical keyboard can)? I don't want change my cmd-keys into control keys system wide. I just want to be able to map my cmd-keys in vim (which to be honest is the lion's share of what I use any terminal for).
BetterTouchTool is good for mapping key sequences. Further, it can do it selectively based on what application is active.
Re: Little known features of iTerm2
#97Earlier quoted context omitted.
Some of the most obvious things I'd give up: - ability to plug into any monitor at any resolution that monitor supports - ability to copy and paste to/from my phone - Transmit - I really haven't found many good s3 clients on Linux - ScreenFlow - Git Tower Most of these have some sort of a work-around or close analog of course. (So I'd likely not be "giving anything up" as much as compromising or learning new techniqu…
Pushbullet (Chrome extension) might work for copy/paste to/from your phone.
Re: Little known features of iTerm2
#98I've found a lot of use from cmd-shift-e, which shows timestamps for each output line in the terminal. Great for figuring out how long a process ran for.
Is there a way to make the timestamps permanent? Kinda sucks that they disappear when you close iTerm.
https://gitlab.com/gnachman/iterm2/issues/4492
However, you could probably hack together a fix pretty easily with this:
https://github.com/BlueM/cliclick
Make it press cmd-shift-e as a Profile command.
Re: Little known features of iTerm2
#99Earlier quoted context omitted.
Yes, splitting panes in iTerm will crate tmux panes on the remote. It's a pretty neat feature.
I mean, it uses it, but it no longer feels like tmux, and you don’t have nice tmux features like zoom-pane, right? iTerm2 is absolutely fantastic and I would miss it if I moved to a linux laptop, but I still haven’t seen the attraction of the tmux integration yet!
Re: Little known features of iTerm2
#100Earlier quoted context omitted.
Which tools would you have to give up?
Some of the most obvious things I'd give up: - ability to plug into any monitor at any resolution that monitor supports - ability to copy and paste to/from my phone - Transmit - I really haven't found many good s3 clients on Linux - ScreenFlow - Git Tower Most of these have some sort of a work-around or close analog of course. (So I'd likely not be "giving anything up" as much as compromising or learning new techniqu…