wouterdebie / i2cssh

csshX like ssh tool for iTerm2
MIT License
547 stars 68 forks source link

To many exits #45

Closed hikerspath closed 8 years ago

hikerspath commented 9 years ago

When completed with a run, I have to type exit once on the host, and twice in the opened sessions themselves due to the profile set commands. I would propose a simple change appended to line 172 on lib/i2cssh.rb

Original:

@term.sessions[@session_index + i].write :text => "unset HISTFILE && echo -e \"\\033]50;SetProfile=#{@profile}\\a\" && #{@ssh_prefix} #{send_env} #{server}"

Proposed:

@term.sessions[@session_index + i].write :text => "unset HISTFILE && echo -e \"\\033]50;SetProfile=#{@profile}\\a\" && #{@ssh_prefix} #{send_env} #{server} && exit"