root: fix environment setup

1) s/envHook/postHook/
2) patch to not set $p that fixes nested ```nix-shell -p root``` calls
This commit is contained in:
Dmitry Kalinkin
2016-10-29 14:47:32 -04:00
parent fa4167c0a1
commit 9434ec5441
3 changed files with 19 additions and 1 deletions
@@ -6,4 +6,4 @@ thisroot () {
source @out@/bin/thisroot.sh
}
envHooks+=(thisroot)
postHooks+=(thisroot)