1 #compdef -value-,TERMINFO_DIRS,-default- -P -value-,*PATH,-default-
4 # -s <sep> to specify the separator (default is a colon)
5 # -S to say that the separator should be added as a suffix (instead
6 # of the default slash)
7 # any description passed should apply to an individual directory and not
12 while [[ "$1" = -(s*|S) ]]; do
14 -s) sep="$2"; shift 2;;
15 -s*) sep="${1[3,-1]}"; shift;;
16 -S) dosuf=yes; shift;;
21 compset -S "${sep}*" || suf="$sep"
23 if [[ -n "$dosuf" ]]; then
29 _directories "$suf[@]" -r "${sep}"' /\t\t\-' "$@"