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

mercurial: install zsh completions #51712

Merged
merged 2 commits into from Dec 21, 2018

Conversation

dtzWill
Copy link
Member

@dtzWill dtzWill commented Dec 8, 2018

Motivation for this change

They're useful, you know :).

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@@ -50,7 +50,8 @@ in python2Packages.buildPythonApplication {
chmod u+x $out/share/cgi-bin/hgweb.cgi

# install bash completion
install -D -v contrib/bash_completion $out/share/bash-completion/completions/mercurial
install -v -m644 -D contrib/bash_completion $out/share/bash-completion/completions/mercurial
install -v -m644 -D contrib/zsh_completion $out/share/zsh/site-functions/_hg
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is going to the nix store anyway, so, maybe, -m444?

@@ -50,7 +50,8 @@ in python2Packages.buildPythonApplication {
chmod u+x $out/share/cgi-bin/hgweb.cgi

# install bash completion
install -D -v contrib/bash_completion $out/share/bash-completion/completions/mercurial
install -v -m644 -D contrib/bash_completion $out/share/bash-completion/completions/mercurial
Copy link
Contributor

@hedning hedning Dec 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Completion doesn't work in bash it seems, we need to copy to hg, _hg or hg.bash for bash-completion to lazy load the file. Should probably fix it while we're here :)

@@ -50,7 +50,8 @@ in python2Packages.buildPythonApplication {
chmod u+x $out/share/cgi-bin/hgweb.cgi

# install bash completion
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And refresh that comment to install shell completions or install bash/zsh completions

@dtzWill
Copy link
Member Author

dtzWill commented Dec 21, 2018 via email

@hedning hedning merged commit 8ed71e8 into NixOS:master Dec 21, 2018
@hedning
Copy link
Contributor

hedning commented Dec 21, 2018

Thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants