aboutsummaryrefslogtreecommitdiff
path: root/sh/shrc.d
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/shrc.d
parentClean up drakon(6df) a bit (diff)
downloaddotfiles-b68feacb05cef1ecc41fe55460a8e1028cedb12a.tar.gz
dotfiles-b68feacb05cef1ecc41fe55460a8e1028cedb12a.zip
Add ed() options file check
Diffstat (limited to 'sh/shrc.d')
-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() {