]> gitweb.fluxo.info Git - leap/leap_cli.git/commitdiff
mosh - ensure utf-8 (in order for mosh to work) and remove the mosh title prefix.
authorelijah <elijah@riseup.net>
Mon, 3 Jun 2013 06:33:14 +0000 (23:33 -0700)
committerelijah <elijah@riseup.net>
Mon, 3 Jun 2013 06:33:14 +0000 (23:33 -0700)
lib/leap_cli/commands/shell.rb
lib/leap_cli/remote/tasks.rb

index 5c16f92acc25ea0cd3f0af2a924789f390d2eb70..2822481e5fe60695baa979a97e98f8f4bc57a93e 100644 (file)
@@ -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
index b5156502783554403fd3baab92013d2c006875cd..f967db1514eb274a2f860cd7137e17974f8b0e2a 100644 (file)
@@ -14,7 +14,7 @@ end
 
 task :install_prerequisites, :max_hosts => MAX_HOSTS do
   leap.mkdirs LeapCli::PUPPET_DESTINATION
-  run "locale-gen"
+  run "echo 'en_US.UTF-8 UTF-8' > /etc/locale.gen; locale-gen"
   leap.log :updating, "package list" do
     run "apt-get update"
   end