diff options
Diffstat (limited to '.local')
-rwxr-xr-x | .local/bin/git-credential-vlt | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/.local/bin/git-credential-vlt b/.local/bin/git-credential-vlt new file mode 100755 index 0000000..af217e3 --- /dev/null +++ b/.local/bin/git-credential-vlt @@ -0,0 +1,17 @@ +#!/bin/sh + +case "$1" in +get) ;; +*) exit 0 +esac + +gawk ' +BEGIN { FS = "=" } +$1 == "username" { + cmd = "vlt raw Email \"" $2 "\"" + cmd | getline passwd + close(cmd) + print "password=" passwd +} +{ print } +' |