mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-18 14:28:15 +00:00
zoxide: update mkOrder to place bash configuration at end of bashrc (#6572)
I updated my flake a few weeks back and `zoxide` has been giving me an error recently: ``` zoxide: detected a possible configuration issue. Please ensure that zoxide is initialized right at the end of your shell configuration file (usually ~/.bashrc). If the issue persists, consider filing an issue at: https://github.com/ajeetdsouza/zoxide/issues Disable this message by setting _ZO_DOCTOR=0. ``` To be fair, I haven't noticed any issues with `zoxide` apart from this error message. The `zoxide` eval statement in my `.bashrc` is not "right at the end" of the file as mentioned in the message which isn't surprising given that it is given a `mkOrder 150`. In my own config, I increased this to `2000` (to ensure it comes after any `mkAfter`s which are `mkOrder 1500` to ensure it happens at the end of the script. After doing so, it appears at the end of my `bashrc` and I no longer get the error message.
This commit is contained in:
parent
597f9c2f06
commit
f8bb0ba6de
1 changed files with 1 additions and 1 deletions
|
@ -48,7 +48,7 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
home.packages = [ cfg.package ];
|
home.packages = [ cfg.package ];
|
||||||
|
|
||||||
programs.bash.initExtra = mkIf cfg.enableBashIntegration (mkOrder 150 ''
|
programs.bash.initExtra = mkIf cfg.enableBashIntegration (mkOrder 2000 ''
|
||||||
eval "$(${cfg.package}/bin/zoxide init bash ${cfgOptions})"
|
eval "$(${cfg.package}/bin/zoxide init bash ${cfgOptions})"
|
||||||
'');
|
'');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue