Skip to content

Instantly share code, notes, and snippets.

@thekad
Created August 16, 2019 19:48
Show Gist options
  • Save thekad/9c411f365e25fb0feb1afedf759d4b76 to your computer and use it in GitHub Desktop.
Save thekad/9c411f365e25fb0feb1afedf759d4b76 to your computer and use it in GitHub Desktop.
#!/bin/bash
function run-mutt() {
local account=$1
local muttFile="$(realpath ${HOME}/.mutt/account-${account}.rc)"
echo "Launching mutt @${account}"
tilix \
--title="$(which mutt) @${account}" \
--action="app-new-session" \
-e $(which mutt) -F ${muttFile}
}
function run-weechat() {
echo "Launching weechat"
tilix \
--title="$(which weechat)" \
-e $(which weechat)
}
run-weechat &
run-mutt redhat.com
run-mutt blegh.net
run-mutt gmail.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment