aboutsummaryrefslogtreecommitdiff
path: root/sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2017-06-23 08:28:00 +1200
committerTom Ryder <tom@sanctum.geek.nz>2017-06-23 08:28:00 +1200
commitb68feacb05cef1ecc41fe55460a8e1028cedb12a (patch)
tree5b9f0c4fd61c0b5870d9ceadb139630ca01efa94 /sh
parent28249853f3c77c4f50b64b4f45c2d5a2c800c34f (diff)
downloaddotfiles-b68feacb05cef1ecc41fe55460a8e1028cedb12a.tar.gz
Add ed() options file check
Diffstat (limited to 'sh')
-rw-r--r--sh/shrc.d/ed.sh4
1 files changed, 4 insertions, 0 deletions
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() {