We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6d264f1 commit feca84cCopy full SHA for feca84c
scripts/bash_pinyin_completion
@@ -34,7 +34,8 @@ _pinyin_completion() {
34
local dirpart="$(dirname -- "$cur")"
35
local basepart="$(basename -- "$cur")"
36
37
- [[ "$dirpart" == "." && "$cur" != */* ]] && dirpart=""
+ # realpath resolve current path as ".", if user did not enter "./" then ignore.
38
+ [[ "$dirpart" == "." && "${cur:0:2}" != "./" ]] && dirpart=""
39
40
local savedPWD="$PWD"
41
local resolved_dir
0 commit comments