completions/sudo: Fix sudo -e

This uses the new "--force-files" flag.

Fixes #5646.

[ci skip]
This commit is contained in:
Fabian Homborg 2019-05-30 19:14:33 +02:00
parent 4ebb6cf39e
commit 430b2a48a9

View File

@ -47,7 +47,7 @@ complete -c sudo -n "__fish_sudo_no_subcommand" -s K -d "Remove the credential t
complete -c sudo -n "__fish_sudo_no_subcommand" -s P -d "Preserve group vector" complete -c sudo -n "__fish_sudo_no_subcommand" -s P -d "Preserve group vector"
complete -c sudo -n "__fish_sudo_no_subcommand" -s S -d "Read password from stdin" complete -c sudo -n "__fish_sudo_no_subcommand" -s S -d "Read password from stdin"
complete -c sudo -n "__fish_sudo_no_subcommand" -s b -d "Run command in the background" complete -c sudo -n "__fish_sudo_no_subcommand" -s b -d "Run command in the background"
complete -c sudo -n "__fish_sudo_no_subcommand" -s e -r -d "Edit" complete -c sudo -n "__fish_sudo_no_subcommand" -s e -rF -d "Edit"
complete -c sudo -n "__fish_sudo_no_subcommand" -s g -a "(__fish_complete_groups)" -x -d "Run command as group" complete -c sudo -n "__fish_sudo_no_subcommand" -s g -a "(__fish_complete_groups)" -x -d "Run command as group"
complete -c sudo -n "__fish_sudo_no_subcommand" -s i -d "Run a login shell" complete -c sudo -n "__fish_sudo_no_subcommand" -s i -d "Run a login shell"
complete -c sudo -n "__fish_sudo_no_subcommand" -s k -d "Reset or ignore the credential timestamp" complete -c sudo -n "__fish_sudo_no_subcommand" -s k -d "Reset or ignore the credential timestamp"