update fish completion again
This commit is contained in:
parent
e7e7b79e99
commit
586c8b34cb
|
@ -3,6 +3,7 @@
|
|||
set -l commands list ls trash tr clean cl restore re
|
||||
set -l already_in_trash_commands list ls clean cl restore re
|
||||
set -l trash_commands trash tr
|
||||
set -l list_commands list ls
|
||||
set -l log_levels debug info warn error fatal
|
||||
|
||||
# commands
|
||||
|
@ -35,5 +36,8 @@ complete -c gt -rf -n "__fish_seen_subcommand_from $commands" -l mode -s x -d "o
|
|||
complete -c gt -rf -n "__fish_seen_subcommand_from $trash_commands" -l recursive -s r -d "recursively trash files"
|
||||
complete -c gt -rf -n "__fish_seen_subcommand_from $trash_commands" -l work-dir -s w -d "trash files in specified directory"
|
||||
|
||||
# list flags
|
||||
complete -c gt -rf -n "__fish_seen_subcommand_from $list_commands" -l non-interactive -s n -d "list files and quit"
|
||||
|
||||
# list / clean / restore flags
|
||||
complete -c gt -rf -n "__fish_seen_subcommand_from $already_in_trash_commands" -l original-path -s O -d "operate on files trashed from this directory"
|
||||
|
|
Loading…
Reference in a new issue