summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2023-12-28 13:35:25 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2023-12-28 13:35:25 -0500
commit63a3e0854894e84663d9f3b11c5c3c18bc7c1a35 (patch)
tree0549295c02ad7260fef1905970f6b446c28a8391
parentd4775d06c87a284b8933634c205c9af11121e4d6 (diff)
Add hacky script to refresh gpg before commiting
-rwxr-xr-x.local/bin/cmt4
-rw-r--r--.profile3
2 files changed, 6 insertions, 1 deletions
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)