From 5ed1eeacbc0be48aa46363cda196c24c1bab45a4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Sun, 1 Sep 2019 10:34:52 +0200 Subject: [PATCH] fix(direnv): correctly setup history file, use shell.nix --- configs/direnv.nix | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configs/direnv.nix b/configs/direnv.nix index 7432205..3ad29ee 100644 --- a/configs/direnv.nix +++ b/configs/direnv.nix @@ -7,14 +7,14 @@ let nixify = pkgs.writers.writeDashBin "nixify" '' direnv allow fi if [ ! -e shell.nix ]; then - cat > default.nix <<'EOF' + cat > shell.nix <<'EOF' { pkgs ? import {} }: pkgs.mkShell { buildInputs = with pkgs; []; - shellHook = "export HISTFILE=${toString ./.history}"; + shellHook = "export HISTFILE=''${toString ./.history}"; } EOF - ''${EDITOR:-vim} default.nix + ''${EDITOR:-vim} shell.nix fi ''; in {