: bharatvaj/dotfiles

Cross platform dotfiles for linux, mac and windows

commit 167ec2beb42fedfcc24bc85799c04d8cb64a4290
parent c4f268e80fa28c29b804b1e724f2ef6263cbdc7a
Author: Bharatvaj Hemanth <bharatvaj@yahoo.com>
Date: Mon, 13 Apr 2026 03:01:47 +0530

Setup openrc user service for gpg-agent

Accomodate gpg-agent ssh workflow in .profile

Add lynx rulesfile. I will probably move this to personal dots in the
future

Add primitive .config/setup.sh
4 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/.config/lynx/rules b/.config/lynx/rules
@@ -0,0 +1,3 @@
+
+Redirect https://reddit.com/* https://old.reddit.com/*
+
diff --git a/.config/rc/init.d/gpg-agent b/.config/rc/init.d/gpg-agent
@@ -0,0 +1,6 @@
+#!/sbin/openrc-run
+
+command="/usr/bin/gpg-agent"
+command_args="--daemon"
+
+export GNUPGHOME="${XDG_DATA_HOME:-$HOME/.local/share}/gnupg"
diff --git a/.config/setup.sh b/.config/setup.sh
@@ -0,0 +1,14 @@
+#!/bin/sh
+XDG_HOME=${1:-$HOME}
+
+create_if_missing() {
+    [ -d "$XDG_HOME/$1" ] || mkdir "$XDG_HOME/$1"
+}
+
+create_if_missing ".local"
+create_if_missing ".local/state"
+
+create_if_missing ".local/state/vim"
+create_if_missing ".local/state/vim/backup"
+create_if_missing ".local/state/vim/swap"
+create_if_missing ".local/state/vim/undo"
diff --git a/.profile b/.profile
@@ -28,6 +28,7 @@ XINITRC="$XDG_CONFIG_HOME"/X11/xinitrc
 #XSERVERRC="$XDG_CONFIG_HOME"/X11/xserverrc
 
 GNUPGHOME="$XDG_DATA_HOME/gnupg"
+SSH_AUTH_SOCK="$(gpgconf --list-dirs agent-ssh-socket)"
 PASSWORD_STORE_DIR="$XDG_DATA_HOME"/pass
 W3M_DIR="$XDG_DATA_HOME"/w3m