mirror of
https://git.sr.ht/~bryan_bennett/flake_env
synced 2025-12-16 14:41:24 +01:00
Get environment restoration working
This commit is contained in:
parent
b7413a17f1
commit
7ec4cfb172
1 changed files with 5 additions and 1 deletions
6
direnvrc
6
direnvrc
|
|
@ -39,7 +39,11 @@ use_flake_env() {
|
|||
local old_xdg_data_dirs=${XDG_DATA_DIRS:-}
|
||||
|
||||
local ld=$(direnv_layout_dir)
|
||||
eval $(@flake_env@ "$1" "$ld")
|
||||
export direnv
|
||||
|
||||
eval "$(@flake_env@ "$1" "$ld")"
|
||||
|
||||
export -n direnv
|
||||
|
||||
# `nix print-dev-env` will create a temporary directory and use it as TMPDIR
|
||||
# We cannot rely on this directory being available at all times,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue