diff options
author | Camil Staps | 2016-01-22 20:32:30 +0100 |
---|---|---|
committer | Camil Staps | 2016-11-30 19:11:06 +0100 |
commit | 4e878efdffdef32e57bd57785096855c6a230b20 (patch) | |
tree | 00006e04855a62658930e370a80f9f04ca5ad040 | |
parent | Moved vim-clean (diff) |
Askpass
-rwxr-xr-x | bin/askpass | 4 | ||||
-rw-r--r-- | system/profile.symlink | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/bin/askpass b/bin/askpass new file mode 100755 index 0000000..dfa595a --- /dev/null +++ b/bin/askpass @@ -0,0 +1,4 @@ +#!/bin/bash +p=$(echo -e "GETPIN\nBYE\n" | pinentry | grep D) +echo "${p:2}" + diff --git a/system/profile.symlink b/system/profile.symlink index e69a48c..71dfd35 100644 --- a/system/profile.symlink +++ b/system/profile.symlink @@ -1,2 +1,3 @@ export PATH="$HOME/bin.local:$HOME/bin:$HOME/.composer/vendor/bin:./bin:/usr/local/bin:/usr/local/sbin:/usr/sbin:/sbin:$PATH" export MANPATH="/usr/local/man:/usr/local/mysql/man:/usr/local/git/man:$MANPATH" +export SUDO_ASKPASS=~/bin/askpass |