From 897b524889100a70123b3a4a513222f44cc0c19b Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 5 Nov 2014 05:08:52 +0100 Subject: env.nix: export HISTFILE only if ~/.history exists --- env.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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) ''; -- cgit v1.2.3