diff options
-rwxr-xr-x | bin/askpass.sh | 2 | ||||
-rwxr-xr-x | zshrc | 3 |
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) @@ -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" |