From 8b6a308e6068a9cb6004bcbe1d16bf45fa6a365f Mon Sep 17 00:00:00 2001 From: randomuser Date: Sat, 24 Dec 2022 00:55:49 -0600 Subject: [PATCH] add pre-authentication to bashrc function gp() there is a program in randomuser/utils which acts as an authentication manager for tildegit. it doesn't work right. when the tildegit password has not been requested recently, instead of popping up a prompt, it will just return an auth error. i honestly don't know why this is happening, but doing this makes gpg-agent aware of the decryption and allows the password to be accessed by git without user intervention. --- bash/bashrc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bash/bashrc b/bash/bashrc index 0198a11..08c3d72 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -50,6 +50,8 @@ git_main_branch () { } gp() { + # a bodge -- git authentication doesn't work quite right + pash c tildegit git push -u origin $(git_main_branch) }