diff options
author | Mateja <mail@matejamaric.com> | 2021-02-23 18:58:27 +0100 |
---|---|---|
committer | Mateja <mail@matejamaric.com> | 2021-02-23 18:58:27 +0100 |
commit | d2e46f939651f716fe26e526eb6a57b6ed4ec4b4 (patch) | |
tree | 9c218f94bad6fad7ffa53a059f6428c3dc2e2316 /.local/bin | |
parent | 8a1ed2f4fbfdd0beef91a597553c818537a22452 (diff) | |
download | dotfiles-d2e46f939651f716fe26e526eb6a57b6ed4ec4b4.tar.gz dotfiles-d2e46f939651f716fe26e526eb6a57b6ed4ec4b4.zip |
Use alias in `get_password.sh` script.
Diffstat (limited to '.local/bin')
-rwxr-xr-x | .local/bin/get_password.sh | 7 |
1 files changed, 6 insertions, 1 deletions
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) |