diff --git a/.profile b/.profile index 627709d..3d799b3 100644 --- a/.profile +++ b/.profile @@ -15,6 +15,13 @@ export XDG_DATA_HOME="$HOME/.local/share" # ~/.local/share /usr/share export XDG_STATE_HOME="$HOME/.var/lib" # ~/.local/state /var/lib export XDG_CACHE_HOME="$HOME/.var/cache" # ~/.cache /var/cache +# Create symlinks from the defaults to our configured locations +# Since, not all applications follow the XDG base directory rules. +[ -L "$HOME/.local/state" ] || + ln -sf "$XDG_STATE_HOME" "$HOME/.local/state" +[ -L "$HOME/.cache" ] || + ln -sf "$XDG_CACHE_HOME" "$HOME/.cache" + export PATH=".local/bin:$PATH" if command -v nvim >/dev/null; then