From 63a3e0854894e84663d9f3b11c5c3c18bc7c1a35 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Thu, 28 Dec 2023 13:35:25 -0500 Subject: Add hacky script to refresh gpg before commiting --- .local/bin/cmt | 4 ++++ .profile | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100755 .local/bin/cmt diff --git a/.local/bin/cmt b/.local/bin/cmt new file mode 100755 index 0000000..0f52ad0 --- /dev/null +++ b/.local/bin/cmt @@ -0,0 +1,4 @@ +#!/bin/sh + +echo "test message" | gpg --pinentry-mode loopback --clearsign && git commit + diff --git a/.profile b/.profile index 4f6edba..1361d61 100644 --- a/.profile +++ b/.profile @@ -20,8 +20,9 @@ export DISTRIB_RELEASE=$(uname -r) export XDG_CONFIG_HOME=$HOME/.config export XDG_DATA_HOME=$HOME/.local/share export R_PROFILE_USER=$HOME/.config/R/Rprofile -export ZDOTDIR=$HOME/.config/zsh +export ZDOTDIR=$XDG_CONFIG_HOME/zsh export TEXMFHOME=$XDG_DATA_HOME/texmf +export TEXSRC=$HOME/.local/src/sherbrooke-tex # Applications export EDITOR=$(which nvim) -- cgit v1.2.3