nixpkgs/pkgs/misc/my-env/loadenv.sh

20 lines
275 B
Bash

#!/bin/sh
OLDPATH="$PATH"
OLDTZ="$TZ"
source @myenvpath@
PATH="$PATH:$OLDPATH"
export PS1="\n@name@:[\u@\h:\w]\$ "
export NIX_MYENV_NAME="@name@"
export buildInputs
export NIX_STRIP_DEBUG=0
export TZ="$OLDTZ"
if test $# -gt 0; then
exec "$@"
else
exec @shell@
fi