config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 7e97e176019fb28339dfc1ac98b019ac59a2b110
parent 653362d97ed046dacec618674999972a62fdbd19
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date:   Sun, 21 Feb 2021 21:39:10 -0800

Update OpenBSD package management functions

- Remove the `x' and `V' flags from the pd and pa functions.
- Rename pQ to pl
- Make pq more logical by moving egrep(1) to the end of the pipeline
  where text in it's final form.

Diffstat:
Mlocal/shell/.config/shell/openbsd | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/local/shell/.config/shell/openbsd b/local/shell/.config/shell/openbsd @@ -4,9 +4,9 @@ ncpu() sysctl -n hw.ncpufound "$@" load() sysctl -n vm.loadavg "$@" # package management -pa() doas pkg_add -xV "$@" -pd() doas pkg_delete -xV "$@" +pa() doas pkg_add "$@" +pd() doas pkg_delete -a "$@" pi() pkg_info "$@" +pl() pkg_locate "${@:-.}" +pq() { cut -d'|' -f1,4 /usr/local/share/ports-INDEX | tr '|' '\t' | egrep "${@:-.}"; } pu() doas pkg_add -u "$@" -pq() { egrep "$@" /usr/local/share/ports-INDEX | cut -d'|' -f1,4 | tr '|' '\t' ;} -pQ() pkg_locate "$@"