summaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-08-19 09:54:55 +0200
committerEkaitz Zárraga <ekaitz.zarraga@protonmail.com>2019-08-19 09:54:55 +0200
commit511117d48c05a0debca198bad2a154dd4b072844 (patch)
tree8487a23552729aa9fa22375863e8358b895155b0 /bash
parentc822d2c0c222616a66519d99a21ea055133d67df (diff)
XDG variables are not seen!
Diffstat (limited to 'bash')
-rw-r--r--bash/.bash_profile9
-rw-r--r--bash/.bashrc5
2 files changed, 7 insertions, 7 deletions
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
diff --git a/bash/.bashrc b/bash/.bashrc
index bcf9541..40f362c 100644
--- a/bash/.bashrc
+++ b/bash/.bashrc
@@ -100,11 +100,6 @@ export COLOR_WHITE=$COLOR_DEFAULT
export EDITOR=vim
-# 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}
-
# Guile (guix)
export GUILE_LOAD_PATH="$HOME/.guix-profile/share/guile/site/2.2${GUILE_LOAD_PATH:+:}$GUILE_LOAD_PATH"
export GUILE_LOAD_COMPILED_PATH="$HOME/.guix-profile/lib/guile/2.2/site-ccache${GUILE_LOAD_COMPILED_PATH:+:}$GUILE_LOAD_COMPILED_PATH"