浏览代码

fix(command-not-found): pass arguments correctly in NixOS (#10381)

amnore 2 年之前
父节点
当前提交
9a02515c7c
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/command-not-found/command-not-found.plugin.zsh

+ 1 - 1
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