dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 926027cf2081553b38d1f04ee5e2a3910d989c5f
parent 90d04a424a1d024c46f5ed832abdb1537d446909
Author: Chris Bracken <chris@bracken.jp>
Date:   Thu, 27 Apr 2023 10:21:54 -0700

git: Move .gitconfig to .config/git/config

At some point, git added support for $XDG_CONFIG_HOME config
directories, so this is one less file that needs to be stuck at the root
of my home directory.

Diffstat:
R.gitconfig -> .config/git/config | 0
M.zshenv | 7+++++--
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.gitconfig b/.config/git/config diff --git a/.zshenv b/.zshenv @@ -54,8 +54,11 @@ if [[ -d "$HOME/.perl5/lib/perl5" ]]; then export PERL5LIB="$HOME/.perl5/lib/perl5:$PERL5LIB" fi -# When not running under a FreeDesktop-compliant session manager, set -# XDG_RUNTIME_DIR for programs (e.g. sway) that need it. +# When not running under a FreeDesktop-compliant session manager, set XDG +# variables for programs (e.g. git, sway) that use them. +if [[ -z "$XDG_CONFIG_HOME" ]]; then + export XDG_CONFIG_HOME="$HOME/.config" +fi if [[ -z "$XDG_RUNTIME_DIR" ]]; then export XDG_RUNTIME_DIR="/tmp/user/$(id -u)" mkdir -p "$XDG_RUNTIME_DIR"