9434ec5441
1) s/envHook/postHook/ 2) patch to not set $p that fixes nested ```nix-shell -p root``` calls
9 lines
177 B
Bash
9 lines
177 B
Bash
thisroot () {
|
|
# Workaround thisroot.sh dependency on man
|
|
if [ -z "${MANPATH}" ]; then
|
|
MANPATH=:
|
|
fi
|
|
source @out@/bin/thisroot.sh
|
|
}
|
|
|
|
postHooks+=(thisroot)
|