-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
nix profile: add aliases #4961
base: master
Are you sure you want to change the base?
nix profile: add aliases #4961
Conversation
Works and builds on MacOS M1 using Rosetta. |
Works and builds on x86_64 NixOS Linux. |
I'm not convinced this is a good idea. If the goal is to reduce typing, I think tab completion is good enough for that. And adding aliases pollutes the search space for tab completion. If we do decide to add aliases, we should have some guidance in doc/manual/src/contributing/cli-guideline.md on when to add an alias. BTW, I think implemented like this, the manual pages will be duplicated for each alias. |
IMO the goal was less to "reduce typing" and more "conform to traditional standards".
Yes I believe that is so. One option I have thought about is creating an option for aliases in nix.conf, that way man pages will not be cluttered, and it gives the end user more fine grain control. |
Is this still open for discussion? |
I marked this as stale due to inactivity. → More info |
This PR adds aliases to the
nix profile
subcommand, which I think are helpful and I was surprised aren't there already.A case can be made for aliases for
install
orupgrade
, but I think for right now only having them forlist
andremove
is fine.