NixOS does not have /bin/bash

This commit is contained in:
Peter Jones
2015-11-16 10:10:34 -07:00
parent dbfd81b3f9
commit 6f0a9785d6

View File

@@ -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