ZSH: make find file only give 1 result
这个提交存在于:
父节点
fb3fb4365e
当前提交
ad9a516eb8
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
|
@ -164,7 +164,7 @@ find_current_file(){
|
|||
return 0
|
||||
fi
|
||||
# Next try locate with an exact filename match
|
||||
filepath="$(locate "*/$lastWord")"
|
||||
filepath="$(locate "*/$lastWord" | sed -n 1p)"
|
||||
if [ "$?" -eq 0 ]; then
|
||||
tokens[-1]="$filepath"
|
||||
LBUFFER="${tokens[@]}"
|
||||
|
|
正在加载…
添加表格
添加链接
在新工单中引用