Nixpkgs version
Describe the bug
Tab completing nixos-rebuild(-ng) shows me files, not flags, when run on fish shell
Steps to reproduce
cd $(mktemp -d)
touch a b c d e f g h i j k l m n o p q r s t u v w x y z
Then in your terminal type nixos-rebuild and press <TAB>.
❯ nixos-rebuild
a f k p u z
b g l q v
c h m r w
d i n s x
e j o t y
Expected behaviour
Show me the switches, just like on bash
Screenshots
n/a
Relevant log output
Additional context
n/a
System metadata
- system:
"x86_64-linux"
- host os:
Linux 6.12.33, NixOS, 25.11 (Xantusia), 25.11.20250616.809998a
- multi-user?:
yes
- sandbox:
yes
- version:
nix-env (Lix, like Nix) 2.94.0-devpre20250617_87d99da System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/hexa/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/hexa/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/hexa/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/hexa/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/fysypr2nk56y1x9nhxlsmyajniyqlr6s-lix-2.94.0-devpre20250617_87d99da/share
- channels(root):
"nixos, nixos-unstable"
- nixpkgs:
/nix/store/axym8ar735sa522cf0zhg78cc96cq820-source
Notify maintainers
@thiagokokada
Note for maintainers: Please tag this issue in your pull request description. (i.e. Resolves #ISSUE.)
I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.
Nixpkgs version
Describe the bug
Tab completing nixos-rebuild(-ng) shows me files, not flags, when run on fish shell
Steps to reproduce
Then in your terminal type
nixos-rebuildand press<TAB>.Expected behaviour
Show me the switches, just like on bash
Screenshots
n/a
Relevant log output
n/aAdditional context
n/a
System metadata
"x86_64-linux"Linux 6.12.33, NixOS, 25.11 (Xantusia), 25.11.20250616.809998ayesyesnix-env (Lix, like Nix) 2.94.0-devpre20250617_87d99da System type: x86_64-linux Additional system types: i686-linux, x86_64-v1-linux, x86_64-v2-linux, x86_64-v3-linux Features: gc, signed-caches System configuration file: /etc/nix/nix.conf User configuration files: /home/hexa/.config/nix/nix.conf:/etc/xdg/nix/nix.conf:/home/hexa/.nix-profile/etc/xdg/nix/nix.conf:/nix/profile/etc/xdg/nix/nix.conf:/home/hexa/.local/state/nix/profile/etc/xdg/nix/nix.conf:/etc/profiles/per-user/hexa/etc/xdg/nix/nix.conf:/nix/var/nix/profiles/default/etc/xdg/nix/nix.conf:/run/current-system/sw/etc/xdg/nix/nix.conf Store directory: /nix/store State directory: /nix/var/nix Data directory: /nix/store/fysypr2nk56y1x9nhxlsmyajniyqlr6s-lix-2.94.0-devpre20250617_87d99da/share"nixos, nixos-unstable"/nix/store/axym8ar735sa522cf0zhg78cc96cq820-sourceNotify maintainers
@thiagokokada
Note for maintainers: Please tag this issue in your pull request description. (i.e.
Resolves #ISSUE.)I assert that this issue is relevant for Nixpkgs
Is this issue important to you?
Add a 👍 reaction to issues you find important.