mirror of
https://github.com/xmonad/xmonad-contrib.git
synced 2025-07-26 09:41:52 -07:00
NixOS does not have /bin/bash
This commit is contained in:
@@ -36,7 +36,7 @@ directoryPrompt c prom = mkXPrompt (Dir prom) c getDirCompl
|
||||
|
||||
getDirCompl :: String -> IO [String]
|
||||
getDirCompl s = (filter notboring . lines) `fmap`
|
||||
runProcessWithInput "/bin/bash" [] ("compgen -A directory " ++ s ++ "\n")
|
||||
runProcessWithInput "bash" [] ("compgen -A directory " ++ s ++ "\n")
|
||||
|
||||
notboring :: String -> Bool
|
||||
notboring ('.':'.':_) = True
|
||||
|
Reference in New Issue
Block a user