mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-01 23:24:21 +08:00
c42c3ebe6f
Add completions for trash-cli commands:
trash, trash-empty, trash-list, trash-put and trash-restore.
``trash --help`` are used to identify the executable in trash cli completion.
(cherry picked from commit ce268b74dd
)
11 lines
586 B
Fish
11 lines
586 B
Fish
# Completions for trash-cli
|
|
# There are many implementations of trash cli tools, but the name ``trash-list`` is unique.
|
|
|
|
# https://github.com/andreafrancia/trash-cli
|
|
complete -f -c trash-list -s h -l help -d 'show help message'
|
|
complete -f -c trash-list -l print-completion -xa 'bash zsh tcsh' -d 'print completion script'
|
|
complete -f -c trash-list -l version -d 'show version number'
|
|
complete -f -c trash-list -l trash-dirs -d 'list trash dirs'
|
|
complete -f -c trash-list -l trash-dir -d 'specify trash directory'
|
|
complete -f -c trash-list -l all-users -d 'list trashcans of all users'
|