nix(fish): source opam env option

This commit is contained in:
Léana 江 2024-04-06 13:44:29 +02:00 committed by Léana 江
parent 858c41e989
commit d7d55059ce
3 changed files with 13 additions and 6 deletions

View file

@ -47,12 +47,16 @@
"/nix/var/nix/profiles/default/bin"
];
interactiveShellInit = readConfigs [
"interactiveShellInit"
"bind"
"colorscheme"
"locale"
];
interactiveShellInit =
readConfigs [
"interactiveShellInit"
"bind"
"colorscheme"
"locale"
]
+ lib.strings.optionalString config.fish.opamInit ''
source ${config.home.homeDirectory}/.opam/opam-init/init.fish > /dev/null 2> /dev/null; or true
'';
functions =
let