zsh-workers
 help / color / mirror / code / Atom feed
658716432ce080a6bee0dc006ebd99182986fd30 blob 855 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
 
#compdef trash

# We only provide completion for Ali Rantakari's trash utility. There are/were a
# few others floating around with that name, but this is the one available as
# `trash` in Homebrew and MacPorts
_pick_variant ali='(Rantakari|hasseg)' other --version && {
  # The hidden options here are options to rm that trash silently (and
  # undocumentedly) ignores. Some options are not made mutually exclusive where
  # they technically could be, for compatibility with aliases, etc.
  _arguments -s -S -A '-*' : \
    '!-'{d,f,i,r,P,R,W} \
    '(: * -F -l -v)-e[empty trash]' \
    '-F[use Finder instead of system API]' \
    '(: * -e -F -s -y)-l[list items in trash]' \
    '(: * -F -l -v)-s[securely empty trash]' \
    '-v[increase output verbosity]' \
    '-y[skip confirmation prompts (with -e or -s)]' \
    '*: :_files'
  return
}

_default
debug log:

solving 658716432 ...
found 658716432 in https://git.vuxu.org/mirror/zsh/

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).