浏览代码

fix(scd): avoid hardcoded binary path (#12641)

Co-authored-by: Carlo Sala <carlosalag@protonmail.com>
Błażej Sowa 7 月之前
父节点
当前提交
c80050d6f5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      plugins/scd/scd

+ 1 - 1
plugins/scd/scd

@@ -445,7 +445,7 @@ _scd_Y19oug_match() {
     # build a list of matching directories reverse-sorted by their probabilities
     dmatching=( ${(f)"$(
         builtin printf "%s %s\n" ${(Oakv)drank} |
-        /usr/bin/sort -grk1 )"}
+        command sort -grk1 )"}
     )
     dmatching=( ${dmatching#*[[:blank:]]} )