nix-index: add nushell integration (#8211)
https://github.com/nix-community/nix-index?tab=readme-ov-file#usage-as-a-command-not-found-replacement
This commit is contained in:
parent
381f4f8a3a
commit
295d90e22d
3 changed files with 25 additions and 0 deletions
|
|
@ -11,6 +11,7 @@ in
|
|||
programs.bash.enable = true;
|
||||
programs.fish.enable = true;
|
||||
programs.zsh.enable = true;
|
||||
programs.nushell.enable = true;
|
||||
|
||||
# Needed to avoid error with dummy fish package.
|
||||
xdg.dataFile."fish/home-manager_generated_completions".source = lib.mkForce (
|
||||
|
|
@ -36,5 +37,11 @@ in
|
|||
assertFileExists home-files/.config/fish/config.fish
|
||||
assertFileRegex \
|
||||
home-files/.config/fish/config.fish '${fishRegex}'
|
||||
|
||||
# Nushell integration
|
||||
assertFileExists home-files/.config/nushell/config.nu
|
||||
assertFileContains \
|
||||
home-files/.config/nushell/config.nu \
|
||||
'$env.config.hooks.command_not_found = (source @nix-index@/etc/profile.d/command-not-found.nu)'
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue