nix icon indicating copy to clipboard operation
nix copied to clipboard

Alias `nix store optimize` to `nix store optimise`

Open myclevorname opened this issue 1 year ago • 1 comments

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.

myclevorname avatar Aug 18 '24 15:08 myclevorname

Hi can this issue please be assigned to me.

Sh0g0-1758 avatar Aug 24 '24 12:08 Sh0g0-1758

Duplicate of #1902.

edolstra avatar Sep 24 '24 11:09 edolstra

Thanks

myclevorname avatar Sep 24 '24 14:09 myclevorname