mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-21 03:21:16 -03:00
Fix python{,2,3} argument completions
Only the first non-switch parameter to python must be a .py file, but everything thereafter is "just another argument". This enables file completions for 2nd+ arguments.
This commit is contained in:
@@ -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 -fa "(__fish_complete_suffix .py)"
|
||||
complete -c python2 -fa '-' -d 'Read program from stdin'
|
||||
complete -c python2 -f -n '__fish_is_first_token' -a "(__fish_complete_suffix .py)"
|
||||
complete -c python2 -f -n '__fish_is_first_token' -a '-' -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"
|
||||
|
||||
Reference in New Issue
Block a user