diff options
Diffstat (limited to 'config/ksh/functions/update_completion_packages_obsd')
-rw-r--r-- | config/ksh/functions/update_completion_packages_obsd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/ksh/functions/update_completion_packages_obsd b/config/ksh/functions/update_completion_packages_obsd new file mode 100644 index 0000000..2de477f --- /dev/null +++ b/config/ksh/functions/update_completion_packages_obsd @@ -0,0 +1,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 +} |