aboutsummaryrefslogtreecommitdiff
path: root/.local/bin
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2021-02-23 18:58:27 +0100
committerMateja <mail@matejamaric.com>2021-02-23 18:58:27 +0100
commitd2e46f939651f716fe26e526eb6a57b6ed4ec4b4 (patch)
tree9c218f94bad6fad7ffa53a059f6428c3dc2e2316 /.local/bin
parent8a1ed2f4fbfdd0beef91a597553c818537a22452 (diff)
downloaddotfiles-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.sh7
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)