Live data from Hacker News

iTerm2 Shell Integration

iterm2.com

31–40 of 102 posts

Re: iTerm2 Shell Integration

#31

Great stuff, I've been using iTerm2 for a while and it's really good to see it evolve like this. I use screen a lot (yes I know, I should switch to tmux one day!) and shell integration doesn't seem to work properly with sessions inside screen. Works perfectly if I ssh directly. Is it going to be supported eventually or is this the ultimate signal for me to switch to tmux?

By default, it is disabled in tmux. It works fine in iTerm2's tmux integration mode, but not in plain old tmux. I'm hopeful that this feature will prove popular and useful enough that I can get tmux to add support for it. To make it work in tmux integration mode just remove the check that $TERM == "screen" in $HOME/.iterm2_shell_integration.$SHELL.

Re: iTerm2 Shell Integration

#32

I'm concerned about the wget to an external server part. This file should be local to prevent excessive slowness and potential security issues. Also, is there a zsh version of this file? zsh is extremely popular on osx.

The linked page explains how to install by hand. I'd like to eliminate the curl|bash. It's tricky to deploy a shell script in a terminal emulator, so it hasn't been done yet. The ability to fix bugs without making users upgrade their client has been invaluable during early beta.

Would it be possible for iTerm to "type" the whole thing in for me? It's already executing a curl, can it do the whole thing through the host?

Re: iTerm2 Shell Integration

#33

Earlier quoted context omitted.

What do you use ProxyCommand for? It seems hard to support, but I'd like to know more.

I've used it in the past to ssh via bastion hosts and the like.

Yes. My config is something like this:

  # proxy n02 connections through bastion
  host n02.university.edu
  ProxyCommand ssh bastion.university.edu -W %h:%p 2> /dev/null
Almost all my remote shells require a similar setup.

Re: iTerm2 Shell Integration

#34

I'd love to use a terminal with similar features on linux

Terminator comes close, but to be honest, iTerm2 still beats it with its user friendliness and features.

It's really interesting how OS X is the one that has a terminal emulator with the most features out there.

iTerm2 now comes with 24-bit colors, command completion popup, notifications, triggers, profiles, mouseless copy, split panes, search, and you can even have inline images/gifs all out of the box with zero or minimal configuration required. That's just awesome.

All of these features and iTerm2 still feels much faster than Terminator to me.

Re: iTerm2 Shell Integration

#35
post #17

I'm here to answer questions anyone has about this. It's a newish feature so feedback is welcome, and bug reports are greatly appreciated. Also, credit goes to FinalTerm for the inspiration. RIP.

As an iterm2 and fish shell user I appreciate the work you guys are doing on bringing this to fish. Thank you! :)

+1

Re: iTerm2 Shell Integration

#36

Earlier quoted context omitted.

Not exactly an iTerm2 clone but pretty close conemu https://code.google.com/p/conemu-maximus5/

+1 for conemu. It's approach and direction seem to be different than iTerm2, but still a must have on Windows.

+1 for conemu/cmder plus git bash on windows. again, different than iterm2 but also a must have

Re: iTerm2 Shell Integration

#38

Earlier quoted context omitted.

I'm using a german keyboard and the shortcut cmd-; is inaccessible because ';' is shift-, I couldn't find a way to customise the shortcut in options. Sorry if I was too stupid to find it. Great work otherwise.

Same here in Norway (and the entire Scandinavia).

Lots of stuff seems broken by default if you are on an exotic layout. I am on a Macbook with a Danish-layout, and ALT+ARROW_LEFT/ARROW_RIGHT doesn't work out of the box in iterm2, however it seems to work if you rebind, or type this into .inputrc:

  "\e\e[D": backward-word
  "\e\e[C": forward-word
I'd love to switch to an american keyboard, because lots of Unix things seems impossible to type with my current keyboard, but maybe I am just being stupid.

Re: iTerm2 Shell Integration

#39
post #18

Earlier quoted context omitted.

Except that it doesn't shell out, so it ignores ProxyCommand...

What do you use ProxyCommand for? It seems hard to support, but I'd like to know more.

I also use a smartcard with gpg-agent speaking the ssh-agent protocol. OpenSSH commandline supports it fine. What's the harm in shelling out?

Re: iTerm2 Shell Integration

#40
post #38

Earlier quoted context omitted.

Same here in Norway (and the entire Scandinavia).

Lots of stuff seems broken by default if you are on an exotic layout. I am on a Macbook with a Danish-layout, and ALT+ARROW_LEFT/ARROW_RIGHT doesn't work out of the box in iterm2, however it seems to work if you rebind, or type this into .inputrc: "\e\e[D": backward-word "\e\e[C": forward-word I'd love to switch to an american keyboard, because lots of Unix things seems impossible to type with my current keyboard, bu…

I switched from a Norwegian keyboard to a UK keyboard with intl. English map on my MacBook. Default keyboard shortcuts suddenly made so much more sense - and I can code without having to use my nose when I run out of fingers for modifier keys. ()[]{}\|/:;' are all available using at most a single modifier (many of them without). Scandinavian characters are available using a single modifier for when I don't code, ex alt-a for å. Definitive productivity boost for me.
Post reply on HN