/usr/share/fish/completions/rm.fish is in fish-common 2.4.0-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | #Completions for rm
if rm --version >/dev/null ^/dev/null # GNU
complete -c rm -s d -l directory --description "Unlink directory (Only by superuser)"
complete -c rm -s f -l force --description "Never prompt before removal"
complete -c rm -s i -l interactive --description "Prompt before removal"
complete -c rm -s I --description "Prompt before removing more than three files"
complete -c rm -s r -l recursive --description "Recursively remove subdirectories"
complete -c rm -s R --description "Recursively remove subdirectories"
complete -c rm -s v -l verbose --description "Explain what is done"
complete -c rm -s h -l help --description "Display help and exit"
complete -c rm -l version --description "Display version and exit"
else # OSX
complete -c rm -s d -d "Attempt to remove directories as well"
complete -c rm -s f -d "Never prompt before removal"
complete -c rm -s i -d "Prompt before removal"
complete -c rm -s P -d "Overwrite before removal"
complete -c rm -s r -d "Recursively remove subdirectories"
complete -c rm -s R -d "Recursively remove subdirectories"
complete -c rm -s v -d "Explain what is done"
complete -c rm -s W -d "Undelete the named files"
end
|