From 0eaf69503f8e61a8c1ffe38846258e1d390fe843 Mon Sep 17 00:00:00 2001 From: Lucas Date: Mon, 10 Jul 2023 10:30:49 +0200 Subject: [PATCH] Update src/_trash: don't complete uncompatible options Co-authored-by: Shohei YOSHIDA --- src/_trash | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/_trash b/src/_trash index 54ff6f4..ad89ccd 100644 --- a/src/_trash +++ b/src/_trash @@ -22,10 +22,10 @@ args=( '(-i --interactive -I --interactive-once -f --force)'{-I,--interactive-once}'[Ask once if deleting 3 or more]' '(-i --interactive -I --interactive-once -f --force)'{-f,--force}'[Don'\''t prompt and ignore errors]' '(- *)--version[Output the version and exit]' - '--list[List out the files in the trash]' - '--orphans[List orphaned files in the trash]' - '--restore[Restore a file from the trash]' - '--delete[Delete a file from the trash]' + '(--list --orphans)--list[List out the files in the trash]' + '(--list --orphans)--orphans[List orphaned files in the trash]' + '(--restore --delete)--restore[Restore a file from the trash]' + '(--restore --delete)--delete[Delete a file from the trash]' '--empty[Empty the trash bin]' '--rm[Escape hatch to permanently delete a file]' '(- *)'{-h,--help}'[This help information]'