aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2021-06-23 10:07:36 +0200
committerGitHub <noreply@github.com>2021-06-23 10:07:36 +0200
commit2ab7c821f310a5b2ccabfe8da3212882825d8a00 (patch)
treea4c631e18b3de43f5cad013350b94b874091779d
parent26d2c62225b3c8a33dbee3cf83f8d2acd1675aa8 (diff)
parent79674c6cdb63a2e9421e38e47d5fe5b5c5ffbb32 (diff)
Merge pull request #4911 from matthewbauer/fix-zsh-completion
Fix zsh completion script
-rw-r--r--misc/zsh/completion.zsh4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/zsh/completion.zsh b/misc/zsh/completion.zsh
index d4df6447e..a902e37dc 100644
--- a/misc/zsh/completion.zsh
+++ b/misc/zsh/completion.zsh
@@ -1,3 +1,5 @@
+#compdef nix
+
function _nix() {
local ifs_bk="$IFS"
local input=("${(Q)words[@]}")
@@ -18,4 +20,4 @@ function _nix() {
_describe 'nix' suggestions
}
-compdef _nix nix
+_nix "$@"