3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/misc/my-env/loadenv.sh
Jonas Hoersch a917b7b011 my-env: pull --norc shell flag out into shell parameter
As zsh's corresponding flag is called --no-rcs, the build environment
couldn't be configured to use zsh at all.

Even then the custom PS1 won't work on zsh, but it's usable enough.

Close #1040.
2013-10-21 20:58:40 +03:00

15 lines
190 B
Bash

#!/bin/sh
OLDPATH="$PATH"
OLDTZ="$TZ"
source @myenvpath@
PATH="$PATH:$OLDPATH"
export PS1="\n@name@:[\u@\h:\w]\$ "
export buildInputs
export NIX_STRIP_DEBUG=0
export TZ="$OLDTZ"
@shell@