Skip to content

Commit a0ea8d2

Browse files
committed
refactor([a-c]*): remove -a for filedir
1 parent 4434b6d commit a0ea8d2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+117
-118
lines changed

completions/a2x

+3-3
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ _comp_cmd_a2x()
1313
return
1414
;;
1515
--destination-dir | --icons-dir | -${noargopts}D)
16-
_comp_compgen -a filedir -d
16+
_comp_compgen filedir -d
1717
return
1818
;;
1919
--doctype | -${noargopts}d)
2020
_comp_xfunc asciidoc doctype
2121
return
2222
;;
2323
--stylesheet)
24-
_comp_compgen -a filedir css
24+
_comp_compgen filedir css
2525
return
2626
;;
2727
esac
@@ -34,7 +34,7 @@ _comp_cmd_a2x()
3434
return
3535
fi
3636

37-
_comp_compgen -a filedir
37+
_comp_compgen filedir
3838
} &&
3939
complete -F _comp_cmd_a2x a2x
4040

completions/abook

+3-3
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ _comp_cmd_abook()
3333
;;
3434
--infile)
3535
COMPREPLY=($(compgen -W stdin -- "$cur"))
36-
_comp_compgen -a filedir
36+
_comp_compgen filedir
3737
;;
3838
--outfile)
3939
COMPREPLY=($(compgen -W stdout -- "$cur"))
40-
_comp_compgen -a filedir
40+
_comp_compgen filedir
4141
;;
4242
--config | --datafile)
43-
_comp_compgen -a filedir
43+
_comp_compgen filedir
4444
;;
4545
esac
4646
} &&

completions/aclocal

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ _comp_cmd_aclocal()
1010
return
1111
;;
1212
--acdir | -I)
13-
_comp_compgen -a filedir -d
13+
_comp_compgen filedir -d
1414
return
1515
;;
1616
--output)
17-
_comp_compgen -a filedir
17+
_comp_compgen filedir
1818
return
1919
;;
2020
--warnings | -W)

completions/acpi

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _comp_cmd_acpi()
1212
return
1313
;;
1414
--directory | -${noargopts}d)
15-
_comp_compgen -a filedir -d
15+
_comp_compgen filedir -d
1616
return
1717
;;
1818
esac

completions/add_members

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ _comp_cmd_add_members()
77

88
case $prev in
99
-r | -d | --regular-members-file | --digest-members-file)
10-
_comp_compgen -a filedir
10+
_comp_compgen filedir
1111
return
1212
;;
1313
-w | -a | --welcome-msg | --admin-notify)

completions/ant

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,23 +35,23 @@ _comp_cmd_ant()
3535
return
3636
;;
3737
-buildfile | -file | -f)
38-
_comp_compgen -a filedir 'xml'
38+
_comp_compgen filedir 'xml'
3939
return
4040
;;
4141
-logfile | -l)
42-
[[ $1 != *phing || $prev != -l ]] && _comp_compgen -a filedir
42+
[[ $1 != *phing || $prev != -l ]] && _comp_compgen filedir
4343
return
4444
;;
4545
-propertyfile)
46-
_comp_compgen -a filedir properties
46+
_comp_compgen filedir properties
4747
return
4848
;;
4949
-nice)
5050
COMPREPLY=($(compgen -W '{1..10}' -- "$cur"))
5151
return
5252
;;
5353
-lib)
54-
_comp_compgen -a filedir -d
54+
_comp_compgen filedir -d
5555
return
5656
;;
5757
-logger | -listener | -inputhandler | -main | -find | -s)

completions/appdata-validate

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ _comp_cmd_appdata_validate()
2525
return
2626
fi
2727

28-
_comp_compgen -a filedir appdata.xml
28+
_comp_compgen filedir appdata.xml
2929
} &&
3030
complete -F _comp_cmd_appdata_validate appdata-validate
3131

completions/apt-build

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ _comp_cmd_apt_build()
2828

2929
case $prev in
3030
--patch | --build-dir | --repository-dir)
31-
_comp_compgen -a filedir
31+
_comp_compgen filedir
3232
return
3333
;;
3434
-h | --help)

completions/apt-cache

+3-3
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ _comp_cmd_apt_cache()
4141
if [[ $special && $ispecial -lt $cword ]]; then
4242
case $special in
4343
add)
44-
_comp_compgen -a filedir
44+
_comp_compgen filedir
4545
;;
4646

4747
showsrc)
@@ -60,11 +60,11 @@ _comp_cmd_apt_cache()
6060
# shellcheck disable=SC2254
6161
case $prev in
6262
--config-file | --pkg-cache | --src-cache | -${noargopts}[cps])
63-
_comp_compgen -a filedir
63+
_comp_compgen filedir
6464
return
6565
;;
6666
--with-source)
67-
_comp_compgen -a filedir '@(deb|dsc|changes)'
67+
_comp_compgen filedir '@(deb|dsc|changes)'
6868
COMPREPLY+=($(
6969
compgen -f -o plusdirs -X '!?(*/)@(Sources|Packages)' -- "$cur"
7070
))

completions/apt-get

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ _comp_cmd_apt_get()
4040
;;
4141
install | reinstall)
4242
if _comp_looks_like_path "$cur"; then
43-
_comp_compgen -a filedir deb
43+
_comp_compgen filedir deb
4444
return
4545
elif [[ $cur == *=* ]]; then
4646
package="${cur%%=*}"
@@ -57,7 +57,7 @@ _comp_cmd_apt_get()
5757
fi
5858
;;&
5959
build-dep)
60-
_comp_compgen -a filedir -d
60+
_comp_compgen filedir -d
6161
_comp_looks_like_path "$cur" && return
6262
;;&
6363
*)
@@ -74,7 +74,7 @@ _comp_cmd_apt_get()
7474
return
7575
;;
7676
--config-file | -${noargopts}c)
77-
_comp_compgen -a filedir
77+
_comp_compgen filedir
7878
return
7979
;;
8080
--target-release | --default-release | -${noargopts}t)

completions/apt-mark

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ _comp_cmd_apt_mark()
4040
return
4141
;;
4242
--config-file | -${noargopts}c)
43-
_comp_compgen -a filedir conf
43+
_comp_compgen filedir conf
4444
return
4545
;;
4646
--file | -${noargopts}f)
47-
_comp_compgen -a filedir
47+
_comp_compgen filedir
4848
return
4949
;;
5050
esac

completions/aptitude

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ _comp_cmd_aptitude()
5555
return
5656
;;
5757
-${noargopts}S)
58-
_comp_compgen -a filedir
58+
_comp_compgen filedir
5959
return
6060
;;
6161
--display-format | --width | -${noargopts}[wFo])

completions/arch

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ _comp_have_command mailmanctl &&
1414
return
1515
;;
1616
--file)
17-
_comp_compgen -a filedir
17+
_comp_compgen filedir
1818
return
1919
;;
2020
esac
@@ -35,7 +35,7 @@ _comp_have_command mailmanctl &&
3535
_comp_xfunc list_lists mailman_lists
3636
;;
3737
2)
38-
_comp_compgen -a filedir
38+
_comp_compgen filedir
3939
;;
4040
esac
4141
fi

completions/arp

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ _comp_cmd_arp()
1717
return
1818
;;
1919
--file | -${noargopts}f)
20-
_comp_compgen -a filedir
20+
_comp_compgen filedir
2121
return
2222
;;
2323
--hw-type | -${noargopts}[Ht])

completions/asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ _comp_cmd_asciidoc()
2323
return
2424
;;
2525
--conf-file | -${noargopts}f)
26-
_comp_compgen -a filedir conf
26+
_comp_compgen filedir conf
2727
return
2828
;;
2929
--doctype | -${noargopts}d)
@@ -35,7 +35,7 @@ _comp_cmd_asciidoc()
3535
return
3636
;;
3737
--out-file | -${noargopts}o)
38-
_comp_compgen -a filedir
38+
_comp_compgen filedir
3939
return
4040
;;
4141
esac
@@ -49,7 +49,7 @@ _comp_cmd_asciidoc()
4949
return
5050
fi
5151

52-
_comp_compgen -a filedir
52+
_comp_compgen filedir
5353
} &&
5454
complete -F _comp_cmd_asciidoc asciidoc asciidoc.py
5555

completions/aspell

+2-2
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ _comp_cmd_aspell()
2323

2424
case $prev in
2525
-c | -p | check | --conf | --personal | --repl | --per-conf)
26-
_comp_compgen -a filedir
26+
_comp_compgen filedir
2727
return
2828
;;
2929
--conf-dir | --data-dir | --dict-dir | --home-dir | --local-data-dir | --prefix)
30-
_comp_compgen -a filedir -d
30+
_comp_compgen filedir -d
3131
return
3232
;;
3333
dump | create | merge)

completions/autoconf

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _comp_cmd_autoconf()
1010
return
1111
;;
1212
--output | -o)
13-
_comp_compgen -a filedir
13+
_comp_compgen filedir
1414
return
1515
;;
1616
--warnings | -W)
@@ -20,7 +20,7 @@ _comp_cmd_autoconf()
2020
return
2121
;;
2222
--prepend-include | -B | --include | -I)
23-
_comp_compgen -a filedir -d
23+
_comp_compgen filedir -d
2424
return
2525
;;
2626
esac
@@ -33,7 +33,7 @@ _comp_cmd_autoconf()
3333
return
3434
fi
3535

36-
_comp_compgen -a filedir '@(ac|in)'
36+
_comp_compgen filedir '@(ac|in)'
3737
} &&
3838
complete -F _comp_cmd_autoconf autoconf
3939

completions/automake

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ _comp_cmd_automake()
1616
return
1717
;;
1818
--libdir)
19-
_comp_compgen -a filedir -d
19+
_comp_compgen filedir -d
2020
return
2121
;;
2222
esac
@@ -29,7 +29,7 @@ _comp_cmd_automake()
2929
return
3030
fi
3131

32-
_comp_compgen -a filedir
32+
_comp_compgen filedir
3333
} &&
3434
complete -F _comp_cmd_automake automake automake-1.1{0..6}
3535

completions/autoreconf

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ _comp_cmd_autoreconf()
1717
return
1818
;;
1919
--prepend-include | -B | --include | -I)
20-
_comp_compgen -a filedir -d
20+
_comp_compgen filedir -d
2121
return
2222
;;
2323
esac
@@ -31,9 +31,9 @@ _comp_cmd_autoreconf()
3131
fi
3232

3333
if [[ $1 == *autoheader ]]; then
34-
_comp_compgen -a filedir '@(ac|in)'
34+
_comp_compgen filedir '@(ac|in)'
3535
else
36-
_comp_compgen -a filedir -d
36+
_comp_compgen filedir -d
3737
fi
3838
} &&
3939
complete -F _comp_cmd_autoreconf autoreconf autoheader

completions/autoscan

+3-3
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ _comp_cmd_autoscan()
1212
return
1313
;;
1414
--prepend-include | --include | -${noargopts}[BI])
15-
_comp_compgen -a filedir -d
15+
_comp_compgen filedir -d
1616
return
1717
;;
1818
esac
@@ -26,9 +26,9 @@ _comp_cmd_autoscan()
2626
fi
2727

2828
if [[ $1 == *autoupdate ]]; then
29-
_comp_compgen -a filedir '@(ac|in)'
29+
_comp_compgen filedir '@(ac|in)'
3030
else
31-
_comp_compgen -a filedir -d
31+
_comp_compgen filedir -d
3232
fi
3333
} &&
3434
complete -F _comp_cmd_autoscan autoscan autoupdate

completions/badblocks

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ _comp_cmd_badblocks()
1010
return
1111
;;
1212
-*[io])
13-
_comp_compgen -a filedir
13+
_comp_compgen filedir
1414
return
1515
;;
1616
esac
@@ -22,7 +22,7 @@ _comp_cmd_badblocks()
2222
fi
2323

2424
: "${cur:=/dev/}"
25-
_comp_compgen -a filedir
25+
_comp_compgen filedir
2626
} &&
2727
complete -F _comp_cmd_badblocks badblocks
2828

completions/bind

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ _comp_cmd_bind()
1515
return
1616
;;
1717
-*f)
18-
_comp_compgen -a filedir
18+
_comp_compgen filedir
1919
return
2020
;;
2121
-*[qu])

completions/btdownloadheadless.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
case $prev in
99
--responsefile | --saveas)
10-
_comp_compgen -a filedir
10+
_comp_compgen filedir
1111
return
1212
;;
1313
esac
@@ -23,7 +23,7 @@
2323
--rarest_first_cutoff --min_uploads --report_hash_failures' \
2424
-- "$cur"))
2525
else
26-
_comp_compgen -a filedir
26+
_comp_compgen filedir
2727
fi
2828
} &&
2929
complete -F _comp_cmd_btdownload btdownloadheadless.py btdownloadcurses.py \

0 commit comments

Comments
 (0)