Simplify python _filedir glob.
This commit is contained in:
parent
d5a7346390
commit
fdae59d057
@ -40,7 +40,7 @@ _python()
|
|||||||
|
|
||||||
|
|
||||||
if [[ "$cur" != -* ]]; then
|
if [[ "$cur" != -* ]]; then
|
||||||
_filedir '@(py|pyc|pyo)'
|
_filedir 'py?([co])'
|
||||||
else
|
else
|
||||||
COMPREPLY=( $( compgen -W "$( _parse_help $1 -h )" -- "$cur" ) )
|
COMPREPLY=( $( compgen -W "$( _parse_help $1 -h )" -- "$cur" ) )
|
||||||
fi
|
fi
|
||||||
|
Loading…
x
Reference in New Issue
Block a user