lib/ssh/manager/cli.rb in ssh-manager-0.0.5 vs lib/ssh/manager/cli.rb in ssh-manager-0.0.6

- old
+ new

@@ -12,13 +12,13 @@ end def connect_to(id) ip = SSH::Manager::Database.new.get_connection_data[id.to_i-1][0] user = SSH::Manager::Database.new.get_connection_data[id.to_i-1][1] - if CONFIG['terminal'] == "xfce4-terminal" || "gnome-terminal" + if CONFIG['terminal'] == "xfce4-terminal" || CONFIG['terminal'] == "gnome-terminal" %x(#{CONFIG['terminal']} --command="ssh #{user}@#{ip}") elsif CONFIG['terminal'] == "xterm" - %x(#{CONFIG['terminal']} -C "ssh #{user}@#{ip}") + %x(#{CONFIG['terminal']} -e "ssh #{user}@#{ip}") else puts "We dont support #{CONFIG['terminal']} right now" puts "Check Github for further development or contributing" end