ma zsh.nix: manually load direnv

This commit is contained in:
makefu 2019-05-08 13:56:04 +02:00
parent 6067519d8d
commit 6f82bc0e45
No known key found for this signature in database
GPG Key ID: 36F7711F3FC0F225

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