From 1e739215824511ea688edd1303a2c1428c993b5b Mon Sep 17 00:00:00 2001 From: Rasmus Steinke Date: Mon, 23 Nov 2015 17:12:41 +0100 Subject: [PATCH] fix --last-used --- rofi-pass | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rofi-pass b/rofi-pass index 7d37342..4f94429 100755 --- a/rofi-pass +++ b/rofi-pass @@ -37,6 +37,8 @@ autopass () { if [[ ${selected_password} == "[ Add Entry ]>" ]]; then insertPass; elif [[ ${selected_password} == "---" ]]; then mainMenu; else + rm -f "$HOME/.config/rofi-pass/last_used" + echo "${root}: $selected_password" > "$HOME/.config/rofi-pass/last_used" if [[ -z "${stuff["$AUTOTYPE_field"]}" ]]; then echo -n "${stuff["${USERNAME_field}"]}" | xdotool type --clearmodifiers --file - xdotool key Tab