Skip to content

Commit f95d2c7

Browse files
committed
feat: also cd to home in shell rc
1 parent a9c27ed commit f95d2c7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/Commands/Create.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ makeUserHomeNonWritable homeDir = do
110110
writeUserShellConfig :: String -> Step
111111
writeUserShellConfig homeDir = do
112112
let shells = ["bash", "zsh"]
113-
let shellConfig = "export HOME=" <> homeDir <> "/mountpoint"
113+
let shellConfig = "export HOME=" <> homeDir <> "/mountpoint" <> "\n" <> "cd $HOME" <> "\n"
114114
let shellConfigPath shell = homeDir <> "/." <> shell <> "rc"
115115

116116
liftIO $ forM_ shells $ \shell -> writeFile (shellConfigPath shell) shellConfig

0 commit comments

Comments
 (0)