diff options
author | Dylan Araps <dylan.araps@gmail.com> | 2018-10-23 13:04:37 +1100 |
---|---|---|
committer | Dylan Araps <dylan.araps@gmail.com> | 2018-10-23 13:04:37 +1100 |
commit | c35b64f1b535884d2a20c60015a9306c56ce0a65 (patch) | |
tree | f4c5e99b1042b56dc8d6b9bb15d89e3951738911 | |
parent | 1559bf0734adc67f0e595e917fd795a9bec22b68 (diff) |
added support for macOS, closes #9
-rwxr-xr-x | fff | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -59,7 +59,8 @@ open() { wbmp|wdp|weba|webm|webp|whl|wim|wm|wma|wmv|wmx|woff|woff2|wrm|wvx|\ xbm|xif|xla|xlam|xls|xlsb|xlsm|xlsx|xlt|xltm|xltx|xm|xmind|xpi|xpm|\ xwd|xz|z|zip|zipx) - nohup xdg-open "$1" &>/dev/null & disown + [[ "$OSTYPE" == darwin* ]] && oc="open" + nohup "${oc:-xdg-open}" "$1" &>/dev/null & disown ;; *) "${EDITOR:-vi}" "$1"; printf '\e[?25l' ;; |