summaryrefslogtreecommitdiffstats
path: root/.local/bin/mailto_handler
diff options
context:
space:
mode:
authorYigit Sever2021-11-18 19:47:26 +0300
committerYigit Sever2021-11-18 19:47:26 +0300
commitfebc6f258b11d0342a64921b95ef64080347a596 (patch)
tree0ab1494d133d9b0f0496476c39b9e87f889d2a84 /.local/bin/mailto_handler
parenta0d26185d3b78862f1f8399392122a3df08c631d (diff)
downloaddotfiles-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_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" -- "$@"