fork/fish-shell
git clone https://git.julia.blue/fork/fish-shell
92739a06e
master
1# dscacheutil 2complete -c dscacheutil -f -d'Directory Service cache utility' 3complete -c dscacheutil -s h -d'lists options' -f -n'[ (commandline -xpc | count) -le 1 ]' 4complete -c dscacheutil -s q -d'initiate query' -f -x -n'[ (commandline -xpc | count) -le 1 ] || contains -- -a (commandline -xpc) || contains -- -q (commandline -xpc) && [ (commandline -xpc | count) -lt 3 ]' -a" 5group\t'name or gid' 6host\t'name or ip address' 7mount\t'name' 8protocol\t'name or number' 9rpc\t'name or number' 10service\t'name or port' 11user\t'name or uid' 12" 13complete -c dscacheutil -s a -d'-q: specific key & value' -f -n'contains -- -q (commandline -xpc)' 14complete -c dscacheutil -o cachedump -d'dump cache overview' -f -n'[ (commandline -xpc | count) -le 1 ]' 15complete -c dscacheutil -o buckets -d'show hash buckets' -f -n'contains -- -cachedump (commandline -xpc)' 16complete -c dscacheutil -o entries -d'-cachedump: cache entries' -f -n'contains -- -cachedump (commandline -xpc)' -a" 17group\t'name or gid' 18host\t'name or ip address' 19mount\t'name' 20protocol\t'name or number' 21rpc\t'name or number' 22service\t'name or port' 23user\t'name or uid' 24" 25complete -c dscacheutil -o configuration -d'print current config' -f -n'[ (commandline -xpc | count) -le 1 ]' 26complete -c dscacheutil -o statistics -d'prints cache stats' -f -n'[ (commandline -xpc | count) -le 1 ]' 27complete -c dscacheutil -o flushcache -d'reset cache' -f -k -n'[ (commandline -xpc | count) -le 1 ]'