We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9c27ed commit f95d2c7Copy full SHA for f95d2c7
1 file changed
src/Commands/Create.hs
@@ -110,7 +110,7 @@ makeUserHomeNonWritable homeDir = do
110
writeUserShellConfig :: String -> Step
111
writeUserShellConfig homeDir = do
112
let shells = ["bash", "zsh"]
113
- let shellConfig = "export HOME=" <> homeDir <> "/mountpoint"
+ let shellConfig = "export HOME=" <> homeDir <> "/mountpoint" <> "\n" <> "cd $HOME" <> "\n"
114
let shellConfigPath shell = homeDir <> "/." <> shell <> "rc"
115
116
liftIO $ forM_ shells $ \shell -> writeFile (shellConfigPath shell) shellConfig
0 commit comments