Skip to content

Commit 1b49e94

Browse files
committed
sh hook: export dir function last, in case of error (e.g., busybox)
1 parent 1e1802e commit 1b49e94

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hook.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@ dir () {
3434
fi
3535
}
3636
37-
export -f dir >/dev/null 2>&1
38-
3937
alias d=dir
4038
alias d.="dir ."
4139
alias d..="dir .."
40+
41+
export -f dir >/dev/null 2>&1
4242
`)
4343
}
4444

0 commit comments

Comments
 (0)