From 2a823242a32fdff35f97d32a2568c54b5a65f299 Mon Sep 17 00:00:00 2001 From: elijah Date: Sun, 2 Jun 2013 23:33:14 -0700 Subject: mosh - ensure utf-8 (in order for mosh to work) and remove the mosh title prefix. --- lib/leap_cli/commands/shell.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'lib/leap_cli/commands/shell.rb') diff --git a/lib/leap_cli/commands/shell.rb b/lib/leap_cli/commands/shell.rb index 5c16f92..2822481 100644 --- a/lib/leap_cli/commands/shell.rb +++ b/lib/leap_cli/commands/shell.rb @@ -35,11 +35,10 @@ module LeapCli; module Commands if cmd == :ssh command = "#{ssh} #{node.name}" elsif cmd == :mosh - command = "mosh --ssh \"#{ssh}\" #{node.name}" + command = "MOSH_TITLE_NOPREFIX=1 mosh --ssh \"#{ssh}\" #{node.name}" end log 2, command - title = "echo -n \"\\033]0;#{username}@#{node.domain.full}\007\"" - exec "#{title} && #{command}" + exec "#{command}" end end; end \ No newline at end of file -- cgit v1.2.3