From 00e7476c6403405d64bc22ca673b106cb3e3ee04 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Tue, 5 Apr 2016 10:41:04 -0400 Subject: Set up sudo askpass. --- bin/askpass.sh | 2 ++ zshrc | 3 +++ 2 files changed, 5 insertions(+) create mode 100755 bin/askpass.sh 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" -- cgit v1.2.3