From eea953925833b88bc8c2edd1ca8e5e84e62f59fc Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Thu, 3 Dec 2020 12:14:04 +0100 Subject: [PATCH] develop: Set shell and hisfile --- garlic/develop.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/garlic/develop.nix b/garlic/develop.nix index 9861f61..e7d8c0c 100644 --- a/garlic/develop.nix +++ b/garlic/develop.nix @@ -18,6 +18,7 @@ stdenv.mkDerivation { # This program loads a environment with the given programs available. # Requires /nix to be available. + curdir="\$(pwd)" export "buildInputs=$buildInputs" # ${stdenv} export "PATH=$PATH" @@ -39,6 +40,8 @@ stdenv.mkDerivation { # Access to bin and nix tools for srun, as it keeps the PATH export "PATH=\$PATH:/bin" export "PATH=$PATH:/gpfs/projects/bsc15/nix/bin" + export "SHELL=${bashInteractive}/bin/bash" + export HISTFILE="\$curdir/.histfile" if [[ -z "\$@" ]]; then exec ${bashInteractive}/bin/bash