diff options
author | Yigit Sever | 2021-11-18 19:47:26 +0300 |
---|---|---|
committer | Yigit Sever | 2021-11-18 19:47:26 +0300 |
commit | febc6f258b11d0342a64921b95ef64080347a596 (patch) | |
tree | 0ab1494d133d9b0f0496476c39b9e87f889d2a84 /.local/bin/mailto_handler | |
parent | a0d26185d3b78862f1f8399392122a3df08c631d (diff) | |
download | dotfiles-febc6f258b11d0342a64921b95ef64080347a596.tar.gz dotfiles-febc6f258b11d0342a64921b95ef64080347a596.tar.bz2 dotfiles-febc6f258b11d0342a64921b95ef64080347a596.zip |
mailto_handler: fix newlines not appearing
Diffstat (limited to '.local/bin/mailto_handler')
-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" -- "$@" |