From b68feacb05cef1ecc41fe55460a8e1028cedb12a Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 23 Jun 2017 08:28:00 +1200 Subject: Add ed() options file check --- sh/shrc.d/ed.sh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sh') diff --git a/sh/shrc.d/ed.sh b/sh/shrc.d/ed.sh index a2b7818e..e6b6eee8 100644 --- a/sh/shrc.d/ed.sh +++ b/sh/shrc.d/ed.sh @@ -1,3 +1,7 @@ +# Our ~/.profile should already have made a directory with the supported +# options for us; if not, we won't be wrapping ed(1) with a function at all +[ -d "$HOME"/.cache/sh/opt/ed ] || return + # Define function proper ed() { -- cgit v1.2.3