~kris/dots

srice

ref: 2582f0c4173a4ad6a31e0cb759473c893cdc4e93 srice/.local/bin/nnn-write -rwxr-xr-x 197 bytes
2582f0c4 — Kris Yotam sb-cpu: portable temp source (Intel Core 0, AMD Tdie/Tctl, Asahi NVMe Composite fallback) 3 months 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