Fix completions for chown (#6132)

Reproducer: type `chown --f<TAB>`
This commit is contained in:
Johannes Altmanninger 2019-09-22 19:01:41 +02:00 committed by Aaron Gyes
parent 70a1d8314c
commit d99c19cc03

View file

@ -9,4 +9,4 @@ complete -c chown -s v -l verbose -d "Output diagnostic for every file"
complete -c chown -s h -l help -d "Display help and exit"
complete -c chown -l version -d "Display version and exit"
complete -c chown -d "Username" -a "(__fish_print_users):"
complete -c chown -d "Username" -a "(string match -r '.*:' (commandline -ct))(__fish_complete_groups)"
complete -c chown -d "Username" -a "(string match -r -- '.*:' (commandline -ct))(__fish_complete_groups)"