Move XDG and PATH to .profile since it is independent of bash

This commit is contained in:
2022-03-08 21:03:48 +01:00
parent e78526f754
commit fb5922a8cb
2 changed files with 18 additions and 17 deletions

11
.profile Normal file
View File

@@ -0,0 +1,11 @@
# freedesktop
# see: https://wiki.archlinux.org/index.php/XDG_Base_Directory
export XDG_CONFIG_HOME=$HOME/.config
export XDG_CACHE_HOME=$HOME/.cache
export XDG_DATA_HOME=$HOME/.local/share
export XDG_STATE_HOME=$HOME/.local/state
# set PATH so it includes user's private bin if it exists
[ -d "$HOME/.config/nvm/current/bin" ] && PATH="$HOME/.config/nvm/current/bin:$PATH"
[ -d "$HOME/.local/opt/go/bin" ] && PATH="$HOME/.local/opt/go/bin:$PATH"
[ -d "$HOME/.local/bin" ] && PATH="$HOME/.local/bin:$PATH"