about summary refs log tree commit diff stats
path: root/config/ksh/functions/update_completion_packages_obsd
blob: 2de477fd8974bc5f10f1116541b7c05d50b303e0 (plain) (blame)
1
2
3
4
5
6
7
8
#!/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
}