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