Include user-dirs.dirs in .profile, and use capitalised versions of the set names.
We already use auto-capitalisation in the shell, so we actually benefit from having capitalised names, considering it reduces headaches induced by hardcoded paths. Also, now that we've accepted that the home directory will be a mess, it will aid standing out. Also source the file in .profile, because it should've been from the start.
This commit is contained in:
1
.profile
1
.profile
@@ -24,6 +24,7 @@ export XDG_CONFIG_HOME="$HOME/.config" # ~/.config /etc
|
||||
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
|
||||
[ -r "$XDG_CONFIG_HOME/user-dirs.dirs" ] && . "$XDG_CONFIG_HOME/user-dirs.dirs"
|
||||
|
||||
# I am not going to set environment variables such as HISTFILE,
|
||||
# Since, cleaning up my $HOME is a losing battle, *every* application
|
||||
|
||||
Reference in New Issue
Block a user