Live data from Hacker News

Little known features of iTerm2

banga.github.io

61–70 of 156 posts

Re: Little known features of iTerm2

#61
post #31

Earlier quoted context omitted.

Some applications I would miss: 1Password / Preview / Acorn / Evernote / Skitch / Pingplotter / djay

https://keepassxc.org/ https://gitlab.gnome.org/GNOME/sushi/tree/master/ , https://en.wikipedia.org/wiki/GNOME_sushi https://krita.org/en/features/highlights/ https://github.com/klaussinani/tusk https://oss.oetiker.ch/smokeping/ , https://oss.oetiker.ch/smokeping-demo/?target=Customers.OP https://www.mixxx.org/features/

While these may do some or all of the apps OP mentioned, the UX of most of them, even from the screenshot seems horrid.

Re: Little known features of iTerm2

#62
post #34

Not 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,…

after years of seeing tmux fly by, and still not understanding its purpose I thought okay, lets give this one liner a try and see if I really don't need to know about tmux as you wrote. :) why do I get: Can't open user config file : No such file or directory

Remove the `-F` flag right in front of that, works for me after that.

Re: Little known features of iTerm2

#63

A little plug: iterm2-dwim is a click handler that makes use of the iTerm2 smart selection feature to open files in your editor at the correct line. https://github.com/dandavison/iterm2-dwim From the README: iterm2-dwim is a click handler for iTerm2. The aim is that you command-click on any file path, relative or absolute, and it opens the file in your editor. If there was a line number, your editor goes to that line…

I _love_ this. Thank you.

Re: Little known features of iTerm2

#64
post #3

I'm a little jealous of iTerm, not going to lie. The UX is pretty nice from what I've seen, but I can't find a like for like replacement for either Windows or Linux.

Every time I've considered a full-on switch to Linux, the many little tools that I'd have to give up weigh heavily the cons column.

You list three proprietary tools.

It used to be that hackers put their efforts into developing/maintaining tools like this as open source software.

Re: Little known features of iTerm2

#66

I love iTerm! I've wondered whether it's possible to setup profile-specific (or folder-specific) aliases? I understand it might be zsh feature that I'm really after, but perhaps iTerm can solve it too?

I think you'll have to look into some scripting then; what you could do is create your aliases for each profile in a separate folder, then use the 'Send text at start' profile to just do a `source ~/profiles/1/aliases.sh` or something to that effect.

Re: Little known features of iTerm2

#67
post #34

Not 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 haven’t really figured out Tmux, and I’m a little ashamed to admit it. I usually reach for screen when needed, and disconnect/reconnect/kill are the only commands of screen I know. I’ll give the tmux -CC a go when I’m back at my machine, but what else does the integration do? I’m a heavy pane user - does the default split pane in tmux mode use tmux splitting for example?

Yes, splitting panes in iTerm will crate tmux panes on the remote. It's a pretty neat feature.

Re: Little known features of iTerm2

#68
Anyone else have any problems getting the first one to work?

I could run /usr/local/bin/hub browse -- commit abc123 without issue, but iTerm wasn't even changing to cursor when hovering over a hash and holding cmd.

Re: Little known features of iTerm2

#69
I love iTerm2 and have been using it for years. Thanks to this post I've even learned a couple of new things that make me love it even more.

One thing I've been trying to get working in iTerm2 has been AWS profile badges. iTerm2 has the ability to use text "badges"[0] to give feedback about the current environment. I'm an AWS engineer and tend to switch between environments a lot, so I thought it would be great to use the badges functionality to let me know when I was in the production environment vs. say, the development environment. This seems pretty simple but I haven't been able to get it to work.

[0] https://iterm2.com/documentation-badges.html

Re: Little known features of iTerm2

#70

iTerm2 is fantastic! It can be a bit CPU hungry but you get a stack of mod cons out of the bargain. There are tons of proprietary escape codes, not least of all the incredibly useful one for "fireworks"! [1] ^[]1337;RequestAttention=fireworks^G [1]: https://iterm2.com/documentation-escape-codes.html

To save people needing to lookup how to use that:

    perl -e 'print "\e]1337;RequestAttention=fireworks\007\n"'
Post reply on HN