about summary refs log tree commit diff
path: root/Completion/Builtins/_unhash
blob: 825c130b2f6b9405dadb79a82738b7b7f55519f4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#compdef 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