mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-05-19 03:20:21 -07:00
SshPrompt now uses RunInXTerm to launch the command
This commit is contained in:
parent
71d75dcd7d
commit
850462ad43
@ -20,6 +20,7 @@ module XMonadContrib.SshPrompt (
|
|||||||
|
|
||||||
import XMonad
|
import XMonad
|
||||||
import XMonadContrib.XPrompt
|
import XMonadContrib.XPrompt
|
||||||
|
import XMonadContrib.RunInXTerm
|
||||||
|
|
||||||
import Control.Monad
|
import Control.Monad
|
||||||
import System.Directory
|
import System.Directory
|
||||||
@ -47,7 +48,7 @@ sshPrompt c = do
|
|||||||
mkXPrompt Ssh c (mkComplFunFromList sc) ssh
|
mkXPrompt Ssh c (mkComplFunFromList sc) ssh
|
||||||
|
|
||||||
ssh :: String -> X ()
|
ssh :: String -> X ()
|
||||||
ssh s = spawn $ "exec xterm -e ssh " ++ s
|
ssh s = runInXTerm ("ssh " ++ s)
|
||||||
|
|
||||||
sshComplList :: IO [String]
|
sshComplList :: IO [String]
|
||||||
sshComplList = do
|
sshComplList = do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user