Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alias nix store optimize to nix store optimise #11326

Open
myclevorname opened this issue Aug 18, 2024 · 1 comment
Open

Alias nix store optimize to nix store optimise #11326

myclevorname opened this issue Aug 18, 2024 · 1 comment
Labels
feature Feature request or proposal good first issue Quick win for first-time contributors

Comments

@myclevorname
Copy link

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 👍 to issues you find important.

@myclevorname myclevorname added the feature Feature request or proposal label Aug 18, 2024
@tomberek tomberek added the good first issue Quick win for first-time contributors label Aug 18, 2024
@Sh0g0-1758
Copy link

Hi can this issue please be assigned to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request or proposal good first issue Quick win for first-time contributors
Projects
None yet
Development

No branches or pull requests

3 participants