#!/bin/ksh update_completion_packages() { if [[ -e /usr/local/share/ports-INDEX ]]; then sed 's/|.*$//' /usr/local/share/ports-INDEX>$XDG_CACHE_HOME/ksh/precompletions/packages else echo "install portslist if you want the completions for pkg_add and pkg_info" > /dev/stderr fi }