aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRasmus Steinke <rasi@xssn.at>2015-11-23 17:12:41 +0100
committerRasmus Steinke <rasi@xssn.at>2015-11-23 17:12:41 +0100
commit1e739215824511ea688edd1303a2c1428c993b5b (patch)
treed90becab884e290ed1294a4720c85dba309e5d4c
parent409586740044f808b77b4fd966bd8b6a00b9da10 (diff)
downloadrofi-pass-1e739215824511ea688edd1303a2c1428c993b5b.tar.gz
fix --last-used
-rwxr-xr-xrofi-pass2
1 files changed, 2 insertions, 0 deletions
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