summaryrefslogtreecommitdiffstats
path: root/.local
diff options
context:
space:
mode:
Diffstat (limited to '.local')
-rwxr-xr-x.local/bin/mailto_handler5
1 files changed, 2 insertions, 3 deletions
diff --git a/.local/bin/mailto_handler b/.local/bin/mailto_handler
index 36c38bd..16f5e1d 100755
--- a/.local/bin/mailto_handler
+++ b/.local/bin/mailto_handler
@@ -1,4 +1,4 @@
1#!/bin/sh 1#!/usr/bin/env bash
2 2
3set -e # we can now exit out from rofi, easily 3set -e # we can now exit out from rofi, easily
4 4
@@ -18,9 +18,8 @@ for account in "${ACCOUNTSDIR}"/*.muttrc; do
18 else 18 else
19 choices="${choices}\n${pick}" 19 choices="${choices}\n${pick}"
20 fi 20 fi
21
22done 21done
23 22
24picked=$(printf '%s' "${choices}" | rofi -dmenu) 23picked=$(echo -e "${choices}" | rofi -dmenu)
25 24
26exec kitty -e neomutt -F "$HOME/.config/mutt/muttrc" -e "source /home/yigit/.config/mutt/accounts/${picked}.muttrc" -- "$@" 25exec kitty -e neomutt -F "$HOME/.config/mutt/muttrc" -e "source /home/yigit/.config/mutt/accounts/${picked}.muttrc" -- "$@"