From 5068115639f500bb36ae3f7e72c9a774623d080c Mon Sep 17 00:00:00 2001 From: "Jason A. Donenfeld" Date: Fri, 5 Feb 2016 22:55:11 +0100 Subject: passmenu: Use faster built-in --- contrib/dmenu/passmenu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'contrib/dmenu') diff --git a/contrib/dmenu/passmenu b/contrib/dmenu/passmenu index c89d9b9..a665c41 100755 --- a/contrib/dmenu/passmenu +++ b/contrib/dmenu/passmenu @@ -20,6 +20,6 @@ password=$(printf '%s\n' "${password_files[@]}" | dmenu "$@") if [[ $typeit -eq 0 ]]; then pass show -c "$password" 2>/dev/null else - pass show "$password" | head -n 1 | tr -d '\n\r' | + pass show "$password" | read pass; printf %s "$pass" | xdotool type --clearmodifiers --file - fi -- cgit v1.2.3