From 6b9318464fd63473f595bb86d8c2a7abfd91d242 Mon Sep 17 00:00:00 2001 From: Aaron Bieber Date: Sun, 19 Jul 2020 07:37:53 -0600 Subject: [PATCH] add cdw to cd to WRKSRC in a port --- extensions/openbsd.ksh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/extensions/openbsd.ksh b/extensions/openbsd.ksh index a70848f..c8ff649 100755 --- a/extensions/openbsd.ksh +++ b/extensions/openbsd.ksh @@ -13,6 +13,10 @@ pclean() { find . -size 0 -exec rm {} \; } +cdw() { + cd $(make show=WRKSRC) +} + maintains() { ( cd /usr/ports/*/$1 > /dev/null 2>&1 && \