From d60352500cd580ab8657a46926d9b86de3be98ac Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Sat, 29 Jul 2023 01:53:37 +0200 Subject: [PATCH] update: source direnv if not already loaded --- home/programs/scripts/nixpkgs-switch | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/home/programs/scripts/nixpkgs-switch b/home/programs/scripts/nixpkgs-switch index 2d5e4ac..98a4266 100755 --- a/home/programs/scripts/nixpkgs-switch +++ b/home/programs/scripts/nixpkgs-switch @@ -17,6 +17,10 @@ end pushd "$config_dir" rm -rf result +if test -z "$DIRENV_DIR" + eval (direnv export fish 2>/dev/null) +end + if test "$other_hostname" = "" switch $nix_os case Darwin