summaryrefslogtreecommitdiff
path: root/.bashrc
diff options
context:
space:
mode:
authorMike Crute <mike@crute.us>2020-11-08 19:39:14 -0800
committerMike Crute <mike@crute.us>2020-11-08 19:39:23 -0800
commit213c1183a1b876a04e27418285099d8f786a48f1 (patch)
tree067559c01daf510284bcc3de028bece2c97a22be /.bashrc
parentdd225876ff65874ca4ce686c8785107bada6dba2 (diff)
downloaddotfiles-213c1183a1b876a04e27418285099d8f786a48f1.tar.bz2
dotfiles-213c1183a1b876a04e27418285099d8f786a48f1.tar.xz
dotfiles-213c1183a1b876a04e27418285099d8f786a48f1.zip
bash: create cli password store command
Diffstat (limited to '.bashrc')
-rw-r--r--.bashrc11
1 files changed, 11 insertions, 0 deletions
diff --git a/.bashrc b/.bashrc
index 6f93f5f..15c54fd 100644
--- a/.bashrc
+++ b/.bashrc
@@ -388,6 +388,17 @@ if have_command xrandr; then
388 } 388 }
389fi 389fi
390 390
391if 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 }
400fi
401
391if have_command systemctl; then 402if 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"