mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 15:31:51 +08:00
Stop abusing __fish_complete_suffix to complete dirs
[ci skip]
This commit is contained in:
parent
dcf017ff57
commit
d46dacdfee
|
@ -49,4 +49,4 @@ complete -c meson -l cross-file -r -d "File describing cross-compilation environ
|
|||
complete -c meson -l wrap-mode -xa 'WrapMode.{default,nofallback,nodownload,forcefallback}' -d "Special wrap mode to use"
|
||||
|
||||
# final parameter
|
||||
complete -c meson -n '__fish_is_first_token' -xa '(__fish_complete_suffix {})'
|
||||
complete -c meson -n '__fish_is_first_token' -xa '(__fish_complete_directories)'
|
||||
|
|
|
@ -38,4 +38,4 @@ complete -x -c optipng -n '__fish_should_complete_switches' -a '-log\t"log messa
|
|||
|
||||
complete -x -c optipng -n 'not __fish_prev_arg_in -out -dir -log' \
|
||||
-a '(__fish_complete_suffix ".{png,PNG,pnm,PNM,tiff,TIFF,bmp,BMP}")'
|
||||
complete -x -c optipng -n '__fish_prev_arg_in -dir' -a '(__fish_complete_suffix \'{}\')' # hack to list directories only
|
||||
complete -x -c optipng -n '__fish_prev_arg_in -dir' -a '(__fish_complete_directories)'
|
||||
|
|
Loading…
Reference in New Issue
Block a user