aboutsummaryrefslogtreecommitdiff
path: root/bin/mked.sh
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-03 17:09:42 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-03 17:09:42 +1200
commit7ba4d39c0544de736ef16ac6f6451e439c656c4a (patch)
treec45283edc65436efec85100676852eebb538766a /bin/mked.sh
parentUse full names of 'cscope...' Vim options (diff)
parentAdd mked(1df) and mkvi(1df) (diff)
downloaddotfiles-7ba4d39c0544de736ef16ac6f6451e439c656c4a.tar.gz
dotfiles-7ba4d39c0544de736ef16ac6f6451e439c656c4a.zip
Merge branch 'feature/mkvi' into develop
* feature/mkvi: Add mked(1df) and mkvi(1df)
Diffstat (limited to 'bin/mked.sh')
-rw-r--r--bin/mked.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/mked.sh b/bin/mked.sh
new file mode 100644
index 00000000..4e280205
--- /dev/null
+++ b/bin/mked.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+# Create paths to all files before invoking editor
+for file ; do
+ mkdir -p -- "${file%/*}" || exit
+done
+exec "$EDITOR" "$@"