~kris/dots

srice

ref: e98f3b030dc24445bd55c68d95d2d81933fd68b3 srice/.local/bin/nnn-write -rw-r--r-- 197 bytes
e98f3b03 — Kris Yotam chore: sync local state after restore (push updates, no pull) a month ago
                                                                                
1
2
3
4
5
6
#!/bin/sh
# nnn-write -- open .mdx/.md files in write (nvim writing config)
case "$1" in
    *.mdx|*.md) write "$1" ;;
    *) ${NNN_FALLBACK_OPENER:-xdg-open} "$1" >/dev/null 2>&1 & disown ;;
esac