about summary refs log tree commit diff
path: root/Completion/Builtins/_unhash
blob: a9050cb4983f1df6e744fd035d8a6feb31a4f94b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#defcomp unhash

local fl="$words[2]" ret=1

[[ "$fl" = -*d* ]] && compgen -n && ret=0
[[ "$fl" = -*a* ]] && compgen -a && ret=0
[[ "$fl" = -*f* ]] && compgen -F && ret=0
[[ "$fl" != -* ]]  && compgen -m && ret=0

return ret