ma zsh.nix: manually load direnv
This commit is contained in:
parent
6067519d8d
commit
6f82bc0e45
@ -25,12 +25,12 @@
|
|||||||
then
|
then
|
||||||
[ -d .direnv ] || mkdir .direnv
|
[ -d .direnv ] || mkdir .direnv
|
||||||
local tmp=$(nix-shell --show-trace "$@" \
|
local tmp=$(nix-shell --show-trace "$@" \
|
||||||
--run "\"$direnv\" dump bash")
|
--run "\"$direnv\" dump zsh")
|
||||||
echo "$tmp" > "$cache"
|
echo "$tmp" > "$cache"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
local path_backup=$PATH term_backup=$TERM
|
local path_backup=$PATH term_backup=$TERM
|
||||||
direnv_load cat "$cache"
|
. "$cache"
|
||||||
|
|
||||||
export PATH=$PATH:$path_backup TERM=$term_backup
|
export PATH=$PATH:$path_backup TERM=$term_backup
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user