From 487d64163c59fa3de79b5ff1abf303475395c4a2 Mon Sep 17 00:00:00 2001 From: Warrick Lo Date: Sat, 11 Dec 2021 23:33:16 -0800 Subject: Restructure entire home directory The new XDG base directories will resemble the Filesystem Hierarchy Standard on Linux or the FreeBSD/OpenBSD directory structure. Refer to the FHS or hier(7). XDG user directories are defined in $XDG_CONFIG_HOME/user-dirs.dirs. --- .bashrc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index b486d2c..7d303c1 100644 --- a/.bashrc +++ b/.bashrc @@ -7,12 +7,12 @@ PS1="\[\033[38;5;3m\][\u@\h \w]\[\033[0m\] \$ " shopt -s histappend HISTSIZE=100000 HISTFILESIZE=100000 -HISTFILE="$HOME/.cache/bash/history" +HISTFILE="$XDG_CACHE_HOME/bash/history" # GPG. export GPG_TTY="$(tty)" # Load aliases. -if [ -f "$HOME/.config/aliasrc" ]; then - source "$HOME/.config/aliasrc" +if [ -f "$XDG_CONFIG_HOME/aliasrc" ]; then + source "$XDG_CONFIG_HOME/aliasrc" fi -- cgit v1.2.3