File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -24,8 +24,10 @@ _pydoc()
24
24
25
25
COMPREPLY=( $( compgen -W ' keywords topics modules' -- " $cur " ) )
26
26
27
- local python=python; [[ $1 == * 3* ]] && python=python3
28
- _xfunc python _python_modules $python
27
+ if [[ $cur != @ (.| * /)* ]]; then
28
+ local python=python; [[ $1 == * 3* ]] && python=python3
29
+ _xfunc python _python_modules $python
30
+ fi
29
31
30
32
# Note that we don't do "pydoc modules" as it is known to hang on
31
33
# some systems; _python_modules tends to work better and faster.
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ _pylint()
75
75
return
76
76
fi
77
77
78
- _xfunc python _python_modules $python
78
+ [[ $cur == @ (. | * /) * ]] || _xfunc python _python_modules $python
79
79
_filedir py
80
80
} &&
81
81
complete -F _pylint pylint pylint-2 pylint-3
You can’t perform that action at this time.
0 commit comments