aboutsummaryrefslogtreecommitdiffstats
path: root/ShellPrompt.hs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ShellPrompt.hs7
1 files changed, 0 insertions, 7 deletions
diff --git a/ShellPrompt.hs b/ShellPrompt.hs
index c24c842..a8222fd 100644
--- a/ShellPrompt.hs
+++ b/ShellPrompt.hs
@@ -20,7 +20,6 @@ module XMonadContrib.ShellPrompt (
, split
, prompt
, safePrompt
- , runInXTerm
) where
import System.Environment (getEnv)
@@ -76,12 +75,6 @@ safePrompt c config = mkXPrompt Shell config (getShellCompl [c]) run
unsafePrompt c config = mkXPrompt Shell config (getShellCompl [c]) run
where run a = unsafeSpawn $ c ++ " " ++ a
--- This may be better done as a specialization of 'prompt'
-runInXTerm :: String -> X ()
-runInXTerm com = do
- c <- io $ catch (getEnv "XTERMCMD") (const $ return "xterm")
- spawn ("exec " ++ c ++ " -e " ++ com)
-
getShellCompl :: [String] -> String -> IO [String]
getShellCompl cmds s | s == "" || last s == ' ' = return []
| otherwise = do