summaryrefslogtreecommitdiffhomepage
path: root/Role/User.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Role/User.hs')
-rw-r--r--Role/User.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Role/User.hs b/Role/User.hs
index 99a8a1a..5fb8897 100644
--- a/Role/User.hs
+++ b/Role/User.hs
@@ -48,7 +48,7 @@ run os = do
shellCommand :: UserOpts -> IO (String, [String])
shellCommand os = case cmdToRun os of
Just v -> return v
- Nothing -> (, []) . fromMaybe "bash" <$> lookupEnv "SHELL"
+ Nothing -> maybe ("bash", ["-l"]) (, []) <$> lookupEnv "SHELL"
-- | Log of recent Activity, with the most recent first.
type Backlog = NonEmpty Log