From: Don Armstrong Date: Wed, 24 Jan 2018 18:33:29 +0000 (-0800) Subject: add mutt alias which executes neomutt if that exists X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;ds=sidebyside;h=4621d23526ccf936d1ad076ece0bc663510dfc52;hp=7c68456bcfc96abb50257894561985047ad9c7ef;p=bin.git add mutt alias which executes neomutt if that exists --- diff --git a/mutt b/mutt new file mode 100755 index 0000000..35889a7 --- /dev/null +++ b/mutt @@ -0,0 +1,13 @@ +#!/bin/sh + +cmd_exists () { + if which "$1" >/dev/null 2>&1; then + return 0; + else + return 1; + fi; +} +if cmd_exists neomutt; then + exec neomutt "$@"; +fi; +exec mutt "$@";