NixOS / nix

Nix, the purely functional package manager
https://nixos.org/
GNU Lesser General Public License v2.1
12.1k stars 1.47k forks source link

Alias `nix store optimize` to `nix store optimise` #11326

Open myclevorname opened 3 weeks ago

myclevorname commented 3 weeks ago

Is your feature request related to a problem? Please describe. The command nix-store --optimize is an alias of nix-store --optimise. However, nix store optimize is NOT an alias of nix store optimise. As an American, it can get annoying when I have to retype the command due to localization differences.

Describe the solution you'd like Preferably, an alias could be made without modifying the bash autocompletion. I tried to naïvely copy and paste the line in src/nix/optimise-store.cc while changing the variable name, but that resulted in both aliases shown in Bash's autocompletion feature.

Describe alternatives you've considered As a workaround, I have patched Nix on my machine to replace the alias for optimise with optimize, along with modifying the manpage to make note of this.

Additional context My workaround is on GitHub.

Priorities

Add :+1: to issues you find important.

Sh0g0-1758 commented 2 weeks ago

Hi can this issue please be assigned to me.