From 728848401323209321819f09a66b44cc9632e830 Mon Sep 17 00:00:00 2001 From: Andrea Rossato Date: Fri, 26 Oct 2007 23:23:34 +0200 Subject: ShellPrompt: remove harcoded path when calling bash darcs-hash:20071026212334-32816-5205f22387919d73d029ccd7da378efefec4f3e3.gz --- ShellPrompt.hs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ShellPrompt.hs b/ShellPrompt.hs index 406916c..ed3bb5d 100644 --- a/ShellPrompt.hs +++ b/ShellPrompt.hs @@ -81,7 +81,7 @@ unsafePrompt c config = mkXPrompt Shell config (getShellCompl [c]) run getShellCompl :: [String] -> String -> IO [String] getShellCompl cmds s | s == "" || last s == ' ' = return [] | otherwise = do - f <- fmap lines $ runProcessWithInput "/bin/bash" [] ("compgen -A file " ++ s ++ "\n") + f <- fmap lines $ runProcessWithInput "bash" [] ("compgen -A file " ++ s ++ "\n") return . map escape . uniqSort $ f ++ commandCompletionFunction cmds s commandCompletionFunction :: [String] -> String -> [String] -- cgit v1.2.3