From ffecadd5f1e55b29bdb792a90d3aafa7787b9fc1 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Mon, 28 Sep 2020 17:07:01 +0300 Subject: handle rofi exit --- .local/bin/mailto_handler | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.local/bin/mailto_handler b/.local/bin/mailto_handler index b85d0e4..9493558 100755 --- a/.local/bin/mailto_handler +++ b/.local/bin/mailto_handler @@ -1,5 +1,7 @@ #!/bin/sh +set -e # we can now exit out from rofi, easily + # rofi available mail accounts ACCOUNTSDIR=$HOME/.config/mutt/accounts @@ -21,4 +23,4 @@ done picked=$(printf "${choices}" | rofi -dmenu) - exec kitty -e neomutt -F "$HOME/.config/mutt/muttrc" -e "source /home/yigit/.config/mutt/accounts/${picked}.muttrc" -- "$@" +exec kitty -e neomutt -F "$HOME/.config/mutt/muttrc" -e "source /home/yigit/.config/mutt/accounts/${picked}.muttrc" -- "$@" -- cgit v1.2.3-70-g09d2