From b2bef6af95d6e44f501c665f00309a9c04b3c1c5 Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Sun, 15 Nov 2015 04:51:51 +0100 Subject: [PATCH] simplify type menu too --- rofi-pass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rofi-pass b/rofi-pass index 143d7b2..23416b3 100755 --- a/rofi-pass +++ b/rofi-pass @@ -228,7 +228,7 @@ else unset helptext; mainMenu; fi typeMenu () { checkIfPass - typefield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | awk -F ':' '{ print $1 }' | grep -Ev '\-\-\-' | tail -n +2)" | _rofi -dmenu -p "Choose Field to type > ") + typefield=$(echo -e "< Return\n---\npassword\n$(pass ${selected_password} | grep ': ' | awk -F ':' '{ print $1 }')" | _rofi -dmenu -p "Choose Field to type > ") if [[ $typefield == "" ]]; then exit; elif [[ $typefield == "password" ]]; then typePass; elif [[ $typefield == "< Return" ]]; then mainMenu;