aboutsummaryrefslogtreecommitdiff
path: root/bin/mkvi.sh
blob: c597438336d3c2b242b9d59c608b2b8aad121147 (plain) (blame)
1
2
3
4
5
6
#!/bin/sh
# Create paths to all files before invoking editor
for file do
    mkdir -p -- "${file%/*}" || exit
done
exec "$VISUAL" "$@"