mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2024-12-27 05:34:35 +00:00
Add xdg runtime dir
This commit is contained in:
parent
f90b7bc9de
commit
b0488df402
|
@ -10,8 +10,7 @@ command -v bat > /dev/null && export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||||
|
|
||||||
# Add executable directories into PATH
|
# Add executable directories into PATH
|
||||||
PATH+=":$HOME/.local/bin"
|
PATH+=":$HOME/.local/bin"
|
||||||
# Add npm binaries
|
PATH+=":$HOME/.local/share/npm/bin" # npm binaries
|
||||||
PATH+=":$HOME/.local/share/npm/bin"
|
|
||||||
|
|
||||||
|
|
||||||
# Only run XDG configs for non-root users
|
# Only run XDG configs for non-root users
|
||||||
|
@ -20,6 +19,7 @@ if [ $UID -ne 0 ]; then
|
||||||
export XDG_CONFIG_HOME="$HOME/.config"
|
export XDG_CONFIG_HOME="$HOME/.config"
|
||||||
export XDG_CACHE_HOME="$HOME/.cache"
|
export XDG_CACHE_HOME="$HOME/.cache"
|
||||||
export XDG_DATA_HOME="$HOME/.local/share"
|
export XDG_DATA_HOME="$HOME/.local/share"
|
||||||
|
export XDG_RUNTIME_DIR="/run/user/$UID"
|
||||||
|
|
||||||
# Per-Application XDG settings
|
# Per-Application XDG settings
|
||||||
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc"
|
||||||
|
|
Loading…
Reference in a new issue