From 511117d48c05a0debca198bad2a154dd4b072844 Mon Sep 17 00:00:00 2001 From: Ekaitz Zárraga Date: Mon, 19 Aug 2019 09:54:55 +0200 Subject: XDG variables are not seen! --- bash/.bash_profile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'bash/.bash_profile') diff --git a/bash/.bash_profile b/bash/.bash_profile index dee76b7..fe92a75 100644 --- a/bash/.bash_profile +++ b/bash/.bash_profile @@ -1,4 +1,9 @@ +# Create .config if it doesn't exist and set XDG vars if they are unset +mkdir -p $HOME/.config +export XDG_CONFIG_HOME=${XDG_CONFIG_HOME:=$HOME/.config} +export XDG_DATA_HOME=${XDG_DATA_HOME:=$HOME/.config} + # Load bashrc to mantain only one file -if [ -f ~/.bashrc ]; then - source ~/.bashrc +if [ -f "$HOME/.bashrc" ]; then + source "$HOME/.bashrc" fi -- cgit v1.2.3