diff options
author | Mike Crute <mike@crute.us> | 2020-11-08 19:39:14 -0800 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2020-11-08 19:39:23 -0800 |
commit | 213c1183a1b876a04e27418285099d8f786a48f1 (patch) | |
tree | 067559c01daf510284bcc3de028bece2c97a22be /.bashrc | |
parent | dd225876ff65874ca4ce686c8785107bada6dba2 (diff) | |
download | dotfiles-213c1183a1b876a04e27418285099d8f786a48f1.tar.bz2 dotfiles-213c1183a1b876a04e27418285099d8f786a48f1.tar.xz dotfiles-213c1183a1b876a04e27418285099d8f786a48f1.zip |
bash: create cli password store command
Diffstat (limited to '.bashrc')
-rw-r--r-- | .bashrc | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -388,6 +388,17 @@ if have_command xrandr; then | |||
388 | } | 388 | } |
389 | fi | 389 | fi |
390 | 390 | ||
391 | if have_command pass; then | ||
392 | # By default pass copies the password or OTP credentials to the X | ||
393 | # clipboard, which is typically correct. However, for pasting into a | ||
394 | # terminal this doesn't work. This version copies the credentials to | ||
395 | # the X primary selection instead. | ||
396 | function pass_shell | ||
397 | { | ||
398 | env PASSWORD_STORE_X_SELECTION=primary pass $@ | ||
399 | } | ||
400 | fi | ||
401 | |||
391 | if have_command systemctl; then | 402 | if have_command systemctl; then |
392 | alias usystemctl="systemctl --user" | 403 | alias usystemctl="systemctl --user" |
393 | alias systemctl-failed-user-units="systemctl --user list-units --state=failed" | 404 | alias systemctl-failed-user-units="systemctl --user list-units --state=failed" |