[PATCH] exec sh shell when sshing, use lua booleans for options

0 views
Skip to first unread message

que...@gmail.com

unread,
Oct 23, 2008, 12:03:56 PM10/23/08
to wmii...@googlegroups.com, ba...@jukie.net, Jan-David Quesel
From: Jan-David Quesel <que...@informatik.uni-oldenburg.de>

---
plugins/ssh.lua | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/plugins/ssh.lua b/plugins/ssh.lua
index d6b4239..549f16a 100644
--- a/plugins/ssh.lua
+++ b/plugins/ssh.lua
@@ -47,7 +47,7 @@ local type = type
module ("ssh")
api_version=0.1

-wmii.set_conf ("ssh.askforuser", "true");
+wmii.set_conf ("ssh.askforuser", true);

local hosts
local users
@@ -88,8 +88,8 @@ end
function show_menu()
local str = wmii.menu(hosts, "ssh:")
if type(str) == "string" then
- local cmd = wmii.get_conf("xterm") .. " -e /bin/sh -c \"ssh "
- if wmii.get_conf("ssh.askforuser") == "true" then
+ local cmd = wmii.get_conf("xterm") .. " -e /bin/sh -c \"exec ssh "
+ if wmii.get_conf("ssh.askforuser") then
local user = wmii.menu(users, "username:")
if type(user) == "string" and user ~= "" then
cmd = cmd .. "-l " .. user .. " "
--
1.6.0.2

Reply all
Reply to author
Forward
0 new messages