From 67afb66eb1a2e7a1f7c912bdeec002de7b25d91d Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Wed, 17 Aug 2016 17:38:45 +1200 Subject: Move simple Bash/pdksh functions into POSIX sh Have only translated the scripts that translate readily into POSIX sh for now. More complex stuff like that bd/pd/sd/ud navigation for Bash doesn't port as easily, mostly because there isn't an analogue for the "local" keyword in POSIX. --- sh/shrc | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 sh/shrc (limited to 'sh/shrc') diff --git a/sh/shrc b/sh/shrc new file mode 100644 index 00000000..e46ec2d8 --- /dev/null +++ b/sh/shrc @@ -0,0 +1,7 @@ +# Load all the POSIX-compatible functions from ~/.shrc.d; more advanced shells +# like bash will have their own functions +for shrc in "$HOME"/.shrc.d/*.sh ; do + [ -e "$shrc" ] || continue + . "$shrc" +done +unset -v shrc -- cgit v1.2.3