summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--env.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/env.nix b/env.nix
index 55d735c..0377835 100644
--- a/env.nix
+++ b/env.nix
@@ -10,7 +10,9 @@ let
];
extraCmds = ''
- export HISTFILE="\$HOME/.history/env-${name}"
+ if test -d "\$HOME/.history"; then
+ export HISTFILE="\$HOME/.history/env-${name}"
+ fi
$(grep export ${hsEnv.outPath}/bin/ghc)
'';