diff options
author | amnore <Mr.ChenWithCapsule@outlook.com> | 2021-11-03 20:17:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-03 13:17:23 +0100 |
commit | 9a02515c7c8eee90909fe72d59d2e3169cb5ed28 (patch) | |
tree | d93351a13bb0038a7d7e76709da86be403d11bc5 | |
parent | 5e8905b4b22dfec9042590f3aa399935b8b83eed (diff) | |
download | zsh-9a02515c7c8eee90909fe72d59d2e3169cb5ed28.tar.gz zsh-9a02515c7c8eee90909fe72d59d2e3169cb5ed28.tar.bz2 zsh-9a02515c7c8eee90909fe72d59d2e3169cb5ed28.zip |
fix(command-not-found): pass arguments correctly in NixOS (#10381)
-rw-r--r-- | plugins/command-not-found/command-not-found.plugin.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/command-not-found/command-not-found.plugin.zsh b/plugins/command-not-found/command-not-found.plugin.zsh index 3ec13429c..cb96fe063 100644 --- a/plugins/command-not-found/command-not-found.plugin.zsh +++ b/plugins/command-not-found/command-not-found.plugin.zsh @@ -50,7 +50,7 @@ fi # NixOS: https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/programs/command-not-found if [[ -x /run/current-system/sw/bin/command-not-found ]]; then command_not_found_handler() { - /run/current-system/sw/bin/command-not-found -- "$@" + /run/current-system/sw/bin/command-not-found "$@" } fi |