summaryrefslogtreecommitdiffstats
path: root/mutt/choose-muttrc-type
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2018-11-03 17:30:09 -0400
committerJesse Luehrs <doy@tozt.net>2018-11-03 17:30:09 -0400
commit6c4c6aa0e4fed80c075641374a28e4d38223fad9 (patch)
tree77b87d1e97825263feaa4c0641d5ec5da04bc26c /mutt/choose-muttrc-type
parent01faf31d70a945510a6cf8f3ec8dd785e9d632e1 (diff)
downloadconf-6c4c6aa0e4fed80c075641374a28e4d38223fad9.tar.gz
conf-6c4c6aa0e4fed80c075641374a28e4d38223fad9.zip
switch between imap and offlineimap depending on the machine
Diffstat (limited to 'mutt/choose-muttrc-type')
-rwxr-xr-xmutt/choose-muttrc-type12
1 files changed, 12 insertions, 0 deletions
diff --git a/mutt/choose-muttrc-type b/mutt/choose-muttrc-type
new file mode 100755
index 0000000..46b2cbe
--- /dev/null
+++ b/mutt/choose-muttrc-type
@@ -0,0 +1,12 @@
+#!/bin/sh
+set -eu
+set -o pipefail
+
+case "$(hostname)" in
+hush)
+ echo 'source ~/.mutt/offlineimap'
+ ;;
+*)
+ echo 'source ~/.mutt/imap'
+ ;;
+esac