From d2e46f939651f716fe26e526eb6a57b6ed4ec4b4 Mon Sep 17 00:00:00 2001 From: Mateja Date: Tue, 23 Feb 2021 18:58:27 +0100 Subject: Use alias in `get_password.sh` script. --- .local/bin/get_password.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to '.local/bin') diff --git a/.local/bin/get_password.sh b/.local/bin/get_password.sh index 63747be..e1b39d9 100755 --- a/.local/bin/get_password.sh +++ b/.local/bin/get_password.sh @@ -1,2 +1,7 @@ #!/usr/bin/env bash -pass -c $(find $HOME/.password-store -type f -iname *gpg | sed 's/.*password-store\/\(.*\).gpg/\1/' | sort | rofi -dmenu) + +shopt -s expand_aliases +# alias list_passwords='dmenu' +alias list_passwords='rofi -dmenu' + +pass -c $(find $HOME/.password-store -type f -iname *gpg | sed 's/.*password-store\/\(.*\).gpg/\1/' | sort | list_passwords) -- cgit v1.2.3