blob: b03cf7fb965f75784fb4242b3400f45f855d3815 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#compdef hash
if [[ "$words[2]" = -*d* ]]; then
if compset -P 1 '*\='; then
_path_files -g '*(-/)'
else
compgen -n -q -S '='
fi
elif compset -P 1 '*\='; then
_files -/g '*(*)'
else
compgen -m -q -S '='
fi
|