From febc6f258b11d0342a64921b95ef64080347a596 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Thu, 18 Nov 2021 19:47:26 +0300 Subject: mailto_handler: fix newlines not appearing --- .local/bin/mailto_handler | 5 ++--- 1 file 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 @@ -#!/bin/sh +#!/usr/bin/env bash set -e # we can now exit out from rofi, easily @@ -18,9 +18,8 @@ for account in "${ACCOUNTSDIR}"/*.muttrc; do else choices="${choices}\n${pick}" fi - done -picked=$(printf '%s' "${choices}" | rofi -dmenu) +picked=$(echo -e "${choices}" | rofi -dmenu) exec kitty -e neomutt -F "$HOME/.config/mutt/muttrc" -e "source /home/yigit/.config/mutt/accounts/${picked}.muttrc" -- "$@" -- cgit v1.2.3-70-g09d2