From 993b1074558352afb6f1c24d2a215898c789e807 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9ana=20=E6=B1=9F?= Date: Sat, 10 May 2025 19:35:50 +0200 Subject: [PATCH] vanadium/fish: source custom environment by default --- nix/configurations/vanadium/home/programs.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/nix/configurations/vanadium/home/programs.nix b/nix/configurations/vanadium/home/programs.nix index aa8e9f53..8bac4c79 100644 --- a/nix/configurations/vanadium/home/programs.nix +++ b/nix/configurations/vanadium/home/programs.nix @@ -50,7 +50,18 @@ in { programs = { neovim.enable = true; neovim.defaultEditor = true; - fish.enable = true; + fish = { + enable = true; + shellInitLast = '' + if test -d ~/.environments + for file in ~/.environments/* + if not string match -q --regex -- '-link$' $file + fish_add_path $file/bin || true + end + end + end + ''; + }; starship.enable = true; tmux.enable = true; direnv.enable = true;