· 6 years ago · Aug 29, 2019, 12:02 AM
1#!/bin/bash
2
3function run-mutt() {
4 local account=$1
5 local muttFile="$(realpath ${HOME}/.mutt/account-${account}.rc)"
6
7 echo "Launching mutt @${account}"
8 tilix \
9 --title="$(which mutt) @${account}" \
10 --action="app-new-session" \
11 -e $(which mutt) -F ${muttFile}
12}
13
14function run-weechat() {
15 echo "Launching weechat"
16 tilix \
17 --title="$(which weechat)" \
18 -e $(which weechat)
19}
20
21run-weechat &
22run-mutt redhat.com
23run-mutt blegh.net
24run-mutt gmail.com