diff options
Diffstat (limited to 'X11/rofi/pass.edit')
-rwxr-xr-x | X11/rofi/pass.edit | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/X11/rofi/pass.edit b/X11/rofi/pass.edit index 66fba6b..2c0eeea 100755 --- a/X11/rofi/pass.edit +++ b/X11/rofi/pass.edit | |||
@@ -4,17 +4,17 @@ ENTRIES="$(find ~/.password-store -name '*gpg' -printf %P\\n | sed 's/.gpg$//')" | |||
4 | 4 | ||
5 | # Give rofi available passwords and exit | 5 | # Give rofi available passwords and exit |
6 | if [ $# -eq 0 ]; then | 6 | if [ $# -eq 0 ]; then |
7 | # Specify rofi prompt as 'Edit' | 7 | # Specify rofi prompt as 'Edit' |
8 | echo -e "\0prompt\x1fEdit" | 8 | echo -e "\0prompt\x1fEdit" |
9 | 9 | ||
10 | echo "$ENTRIES" | 10 | echo "$ENTRIES" |
11 | exit 0 | 11 | exit 0 |
12 | fi | 12 | fi |
13 | 13 | ||
14 | # If password doesn't exist, just quit | 14 | # If password doesn't exist, just quit |
15 | <<<"$ENTRIES" grep -q $1 || exit 0 | 15 | <<<"$ENTRIES" grep -q $1 || exit 0 |
16 | 16 | ||
17 | # Use detected terminal emulator to edit password | 17 | # Use detected terminal emulator to edit password |
18 | coproc ( | 18 | coproc ( |
19 | alacritty -e pass edit $1 && $(dirname $0)/pass.get $1 | 19 | $terminal -e pass edit $1 && $(dirname $0)/pass.get $1 |
20 | ) | 20 | ) |