mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-12 13:08:49 +00:00
python completions: Disable file completion
Otherwise the prior commit was pointless.
This commit is contained in:
parent
66f181499b
commit
3650712ff2
3 changed files with 6 additions and 6 deletions
|
@ -14,8 +14,8 @@ complete -c python -s v -d "Verbose mode"
|
|||
complete -c python -s V -d "Display version and exit"
|
||||
complete -c python -s W -x -d "Warning control" -a "ignore default all module once error"
|
||||
complete -c python -s x -d 'Skip first line of source, allowing use of non-Unix forms of #!cmd'
|
||||
complete -c python -a "(__fish_complete_suffix .py)"
|
||||
complete -c python -a '-' -d 'Read program from stdin'
|
||||
complete -c python -fa "(__fish_complete_suffix .py)"
|
||||
complete -c python -fa '-' -d 'Read program from stdin'
|
||||
|
||||
# Version-specific completions
|
||||
# We have to detect this at runtime because pyenv etc can change
|
||||
|
|
|
@ -13,8 +13,8 @@ complete -c python2 -s v -d "Verbose mode"
|
|||
complete -c python2 -s V -d "Display version and exit"
|
||||
complete -c python2 -s W -x -d "Warning control" -a "ignore default all module once error"
|
||||
complete -c python2 -s x -d 'Skip first line of source, allowing use of non-Unix forms of #!cmd'
|
||||
complete -c python2 -a "(__fish_complete_suffix .py)"
|
||||
complete -c python2 -a '-' -d 'Read program from stdin'
|
||||
complete -c python2 -fa "(__fish_complete_suffix .py)"
|
||||
complete -c python2 -fa '-' -d 'Read program from stdin'
|
||||
complete -c python2 -s 3 -d 'Warn about Python 3.x incompatibilities that 2to3 cannot trivially fix'
|
||||
complete -c python2 -s t -d "Warn on mixed tabs and spaces"
|
||||
complete -c python2 -s Q -x -a "old new warn warnall" -d "Division control"
|
||||
|
|
|
@ -13,8 +13,8 @@ complete -c python3 -s v -d "Verbose mode"
|
|||
complete -c python3 -s V -d "Display version and exit"
|
||||
complete -c python3 -s W -x -d "Warning control" -a "ignore default all module once error"
|
||||
complete -c python3 -s x -d 'Skip first line of source, allowing use of non-Unix forms of #!cmd'
|
||||
complete -c python3 -a "(__fish_complete_suffix .py)"
|
||||
complete -c python3 -a '-' -d 'Read program from stdin'
|
||||
complete -c python3 -fa "(__fish_complete_suffix .py)"
|
||||
complete -c python3 -fa '-' -d 'Read program from stdin'
|
||||
complete -c python3 -s q -d 'Don\'t print version and copyright messages on interactive startup'
|
||||
complete -c python3 -s X -x -d 'Set implementation-specific option'
|
||||
complete -c python3 -s b -d 'Issue warnings about str(bytes_instance), str(bytearray_instance) and comparing bytes/bytearray with str'
|
||||
|
|
Loading…
Reference in a new issue