vanadium: source each environment when needed individually

This commit is contained in:
Primrose 2025-05-19 21:19:52 +02:00
parent 0342f5e87c
commit e7afade200
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
3 changed files with 24 additions and 15 deletions

View file

@ -42,21 +42,8 @@ in {
programs = {
neovim.enable = true;
neovim.defaultEditor = true;
fish = {
enable = true;
shellInitLast = ''
if test -d ~/.environments
for file in ~/.environments/*
if not string match -q --regex -- '-link$' $file
# - global: make sure the path added is scoped to the instance of the shell
# https://github.com/fish-shell/fish-shell/issues/8604#issuecomment-2854550904
# - append: make my own environment come after a nix shell even if invoked by one
fish_add_path --global --append --move $file/bin
end
end
end
'';
};
fish.enable = true;
starship.enable = true;
tmux.enable = true;
direnv.enable = true;