diff options
Diffstat (limited to 'Completion/Core/_files')
-rw-r--r-- | Completion/Core/_files | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Completion/Core/_files b/Completion/Core/_files index 32d78dba1..a92771f80 100644 --- a/Completion/Core/_files +++ b/Completion/Core/_files @@ -4,13 +4,13 @@ local opts opt type=file group opts=() group=() -while getopts "P:S:qr:R:W:F:J:V:X:f/g:M:" opt; do +while getopts "P:S:qr:R:W:F:J:V:X:f/g:M:12n" opt; do case "$opt" in - /) [[ "$type" = file ]] && type=dir ;; - g) [[ "$type" = (file|dir) ]] && type="$OPTARG" ;; - q) opts=("$opts[@]" -q ) ;; - [JV]) group=( "-$opt" "$OPTARG") ;; - [^f]) opts=("$opts[@]" "-$opt" "$OPTARG") ;; + /) [[ "$type" = file ]] && type=dir ;; + g) [[ "$type" = (file|dir) ]] && type="$OPTARG" ;; + [qn12]) opts=("$opts[@]" "-$opt" ) ;; + [JV]) group=( "-$opt" "$OPTARG") ;; + [^f]) opts=("$opts[@]" "-$opt" "$OPTARG") ;; esac done |