summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/askpass.sh2
-rwxr-xr-xzshrc3
2 files changed, 5 insertions, 0 deletions
diff --git a/bin/askpass.sh b/bin/askpass.sh
new file mode 100755
index 0000000..d4b2566
--- /dev/null
+++ b/bin/askpass.sh
@@ -0,0 +1,2 @@
+#!/bin/bash
+pass show machine/$(hostname)
diff --git a/zshrc b/zshrc
index cbf6bdc..d657782 100755
--- a/zshrc
+++ b/zshrc
@@ -79,3 +79,6 @@ function get-parent-dir() {
}
zle -N get-parent-dir
bindkey "^[u" get-parent-dir
+
+alias sudo="sudo -A"
+SUDO_ASKPASS="$HOME/bin/askpass.sh"