diff options
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/mailto_handler | 5 |
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 | ||
3 | set -e # we can now exit out from rofi, easily | 3 | set -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 | |||
22 | done | 21 | done |
23 | 22 | ||
24 | picked=$(printf '%s' "${choices}" | rofi -dmenu) | 23 | picked=$(echo -e "${choices}" | rofi -dmenu) |
25 | 24 | ||
26 | exec kitty -e neomutt -F "$HOME/.config/mutt/muttrc" -e "source /home/yigit/.config/mutt/accounts/${picked}.muttrc" -- "$@" | 25 | exec kitty -e neomutt -F "$HOME/.config/mutt/muttrc" -e "source /home/yigit/.config/mutt/accounts/${picked}.muttrc" -- "$@" |