aboutsummaryrefslogtreecommitdiff
path: root/src/nix/main.cc
diff options
context:
space:
mode:
authorThéophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>2022-07-12 09:12:00 +0200
committerGitHub <noreply@github.com>2022-07-12 09:12:00 +0200
commitf071eb3702c7aa86fc1885321d73a3707ed702b6 (patch)
tree6ebb56e21b2f514348971bffd25250e3b1712e86 /src/nix/main.cc
parent7e23039b7f491f8517309e0c20653d6d80c37dd7 (diff)
parent711b2e1f48316d80853635408c518e3562a1fa37 (diff)
Merge pull request #6693 from ncfavier/complete-flake-inputs
Improve shell completion of flake inputs
Diffstat (limited to 'src/nix/main.cc')
-rw-r--r--src/nix/main.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nix/main.cc b/src/nix/main.cc
index 17c92ebc6..a8404a2ea 100644
--- a/src/nix/main.cc
+++ b/src/nix/main.cc
@@ -347,7 +347,10 @@ void mainWrapped(int argc, char * * argv)
if (!completions) throw;
}
- if (completions) return;
+ if (completions) {
+ args.completionHook();
+ return;
+ }
if (args.showVersion) {
printVersion(programName);