dotfiles

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

commit 84d21566fb5ee10ed254eb0215f9b83ebfc14638
parent b2316db62f6023c06e69161446f07d9cbd5f0b94
Author: Chris Bracken <chris@bracken.jp>
Date:   Thu, 27 Apr 2023 10:58:21 -0700

zsh: move extra config files to XDG config dir

Even though zsh doesn't use XDG config dir for shell configuration, I
can clean up my home directory significantly by moving ancillary files
to $XDG_CONFIG_HOME/zsh.

Diffstat:
D.colors | 13-------------
R.aliases -> .config/zsh/aliases | 0
R.sh_functions -> .config/zsh/functions | 0
R.paths -> .config/zsh/paths | 0
R.tools -> .config/zsh/tools | 0
M.zshrc | 20++++++++++----------
6 files changed, 10 insertions(+), 23 deletions(-)

diff --git a/.colors b/.colors @@ -1,13 +0,0 @@ -# .colors -# -# 0x=normal, 1x=bold, 4x=underline, 5x=blink, 7x=inverse -# 0=black, 1=red, 2=green, 3=yellow, 4=blue, 5=magenta, 6=cyan, 7=white - -# Colour support for less. -export LESS_TERMCAP_mb=$'\E[01;31m' # begin blinking -export LESS_TERMCAP_md=$'\E[01;31m' # begin bold -export LESS_TERMCAP_me=$'\E[0m' # end blinking, bold -export LESS_TERMCAP_so=$'\E[01;44;33m' # begin standout -export LESS_TERMCAP_se=$'\E[0m' # end standout -export LESS_TERMCAP_us=$'\E[04;32m' # begin underline -export LESS_TERMCAP_ue=$'\E[0m' # end underline diff --git a/.aliases b/.config/zsh/aliases diff --git a/.sh_functions b/.config/zsh/functions diff --git a/.paths b/.config/zsh/paths diff --git a/.tools b/.config/zsh/tools diff --git a/.zshrc b/.zshrc @@ -56,26 +56,26 @@ fi unset term_bin # Load path additions. -if [ -f ~/.paths ]; then - . ~/.paths +if [ -f "$XDG_CONFIG_HOME/zsh/paths" ]; then + . "$XDG_CONFIG_HOME/zsh/paths" fi # Load aliases. -if [ -f ~/.aliases ]; then - . ~/.aliases +if [ -f "$XDG_CONFIG_HOME/zsh/aliases" ]; then + . "$XDG_CONFIG_HOME/zsh/aliases" fi # Load colour support. -if [ -f ~/.colors ]; then - . ~/.colors +if [ -f "$XDG_CONFIG_HOME/zsh/colors" ]; then + . "$XDG_CONFIG_HOME/zsh/colors" fi # Load custom functions. -if [ -f ~/.sh_functions ]; then - . ~/.sh_functions +if [ -f "$XDG_CONFIG_HOME/zsh/functions" ]; then + . "$XDG_CONFIG_HOME/zsh/functions" fi # Load tools. -if [ -f ~/.tools ]; then - . ~/.tools +if [ -f "$XDG_CONFIG_HOME/zsh/tools" ]; then + . "$XDG_CONFIG_HOME/zsh/tools" fi