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
nixos/fish: generate autocompletions from man pages #52464
Conversation
57a7a9e
to
6d7939f
Compare
6d7939f
to
bd9e939
Compare
Thank you.
Ideally they'd be suppressed... EDIT: Solved. |
f381bd5
to
5eb556e
Compare
If anyone wants to help me |
2b89e7c
to
a56cf05
Compare
I changed the interpreter to Python 2 (turns out it has about half the startup time compared to Python 3), and got rid of the superfluous output (turns out it was |
a56cf05
to
0637687
Compare
This pull request has been mentioned on Nix community. There might be relevant details there: https://discourse.nixos.org/t/nixos-19-03-feature-freeze/1950/35 |
I don't think that should be the motivation. Python 2 is EOL in 2020, so we should be migrating away from it. If someone doesn't care about it, then they should pick |
0637687
to
ea19a42
Compare
Done. |
0d2b3c6
to
917de02
Compare
917de02
to
5cc6377
Compare
I gave using |
Motivation for this change
The fish shell has the ability to autocomplete commands. For this it uses completions that are either manually defined (coming with fish or the respective software package), or parsed from man pages.
On other systems, users have to run
fish_update_completions
to regenerate those parsed completions after installing new software. Since on NixOS we are the ones responsible for installed software, we can automate the process.Things done
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
p./result/bin/
)nix path-info -S
before and after)