From 0163cb7b8779e9ad1fc9389958dcf141417bb08d Mon Sep 17 00:00:00 2001 From: self Date: Sun, 1 May 2022 23:06:02 +0100 Subject: Aliases/envvars to move gnupg from homedir --- zsh/.zshenv | 1 + zsh/.zshrc | 1 + 2 files changed, 2 insertions(+) (limited to 'zsh') diff --git a/zsh/.zshenv b/zsh/.zshenv index 2aefcc2..d7d31ba 100644 --- a/zsh/.zshenv +++ b/zsh/.zshenv @@ -16,6 +16,7 @@ export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv export GOPATH="$XDG_DATA_HOME"/go export LESSHISTFILE=/dev/null +export GNUPGHOME="$XDG_DATA_HOME"/gnupg # ZSH Directories export ZDOTDIR=$XDG_CONFIG_HOME/zsh diff --git a/zsh/.zshrc b/zsh/.zshrc index ddc709f..1f2ebb4 100644 --- a/zsh/.zshrc +++ b/zsh/.zshrc @@ -27,6 +27,7 @@ autoload -U promptinit && promptinit ########## Reducing clutter in home directory ########## alias feh="feh --no-fehbg" alias newsboat="newsboat -u ~/.config/newsboat/urls" +alias gpg2="gpg2 --homedir $XDG_DATA_HOME/gnupg" # TODO: add all XDG directories in the right places, and then run the commands # as per the SO post: https://stackoverflow.com/questions/26198926/why-does-lesshst-keep-showing-up-in-my # to get rid of .lesshst file and where man creates it as well -- cgit v1.2.1