ma zsh.nix: manually load direnv

This commit is contained in:
makefu 2019-05-08 13:56:04 +02:00
parent af685af15b
commit 6607c4ae00

View file

@ -25,12 +25,12 @@
then
[ -d .direnv ] || mkdir .direnv
local tmp=$(nix-shell --show-trace "$@" \
--run "\"$direnv\" dump bash")
--run "\"$direnv\" dump zsh")
echo "$tmp" > "$cache"
fi
local path_backup=$PATH term_backup=$TERM
direnv_load cat "$cache"
. "$cache"
export PATH=$PATH:$path_backup TERM=$term_backup