summaryrefslogtreecommitdiff
path: root/.local/bin/git-credential-vlt
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-09-20 23:36:29 +0200
committerThomas Voss <mail@thomasvoss.com> 2024-09-20 23:36:29 +0200
commit4ef7faeea637c8dc32728af1b848c5fe51acdb3c (patch)
treed333fb8c2b37e4a9d9531c7697674cf588d05658 /.local/bin/git-credential-vlt
parent535d7f305167396797269277e92680481b22af32 (diff)
git-credential-vlt: Add vlt support for Git
Diffstat (limited to '.local/bin/git-credential-vlt')
-rwxr-xr-x.local/bin/git-credential-vlt17
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 }
+'