develop: Set shell and hisfile

This commit is contained in:
Rodrigo Arias 2020-12-03 12:14:04 +01:00
parent 3dbb24dd9e
commit eea9539258

View File

@ -18,6 +18,7 @@ stdenv.mkDerivation {
# This program loads a environment with the given programs available. # This program loads a environment with the given programs available.
# Requires /nix to be available. # Requires /nix to be available.
curdir="\$(pwd)"
export "buildInputs=$buildInputs" export "buildInputs=$buildInputs"
# ${stdenv} # ${stdenv}
export "PATH=$PATH" export "PATH=$PATH"
@ -39,6 +40,8 @@ stdenv.mkDerivation {
# Access to bin and nix tools for srun, as it keeps the PATH # Access to bin and nix tools for srun, as it keeps the PATH
export "PATH=\$PATH:/bin" export "PATH=\$PATH:/bin"
export "PATH=$PATH:/gpfs/projects/bsc15/nix/bin" export "PATH=$PATH:/gpfs/projects/bsc15/nix/bin"
export "SHELL=${bashInteractive}/bin/bash"
export HISTFILE="\$curdir/.histfile"
if [[ -z "\$@" ]]; then if [[ -z "\$@" ]]; then
exec ${bashInteractive}/bin/bash exec ${bashInteractive}/bin/bash