From 1b49e94d7842781b1b25166a08d291455ac5f794 Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Thu, 21 Nov 2024 15:21:02 -0500 Subject: [PATCH] sh hook: export dir function last, in case of error (e.g., busybox) --- src/hook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hook.go b/src/hook.go index 937d0b8..e780cfe 100644 --- a/src/hook.go +++ b/src/hook.go @@ -34,11 +34,11 @@ dir () { fi } - export -f dir >/dev/null 2>&1 - alias d=dir alias d.="dir ." alias d..="dir .." + + export -f dir >/dev/null 2>&1 `) }