Stop abusing __fish_complete_suffix to complete dirs

[ci skip]
This commit is contained in:
Fabian Homborg 2019-05-27 19:37:28 +02:00
parent dcf017ff57
commit d46dacdfee
2 changed files with 2 additions and 2 deletions

View File

@ -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)'

View File

@ -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)'