Shell & Prompt
XDG User Directories
Section titled “XDG User Directories”export XDG_CONFIG_HOME=$HOME/.config # Where user-specific configurations should be written (analogous to /etc).export XDG_CACHE_HOME=$HOME/.cache # Where user-specific non-essential (cached) data should be written (analogous to /var/cache).export XDG_DATA_HOME=$HOME/.local/share # Where user-specific data files should be written (analogous to /usr/share).export XDG_STATE_HOME=$HOME/.local/state # Where user-specific state files should be written (analogous to /var/lib).Bash:
export BASH_COMPLETION_USER_FILE="$XDG_CONFIG_HOME"/bash-completion/bash_completionZSH:
export ZDOTDIR=$XDG_CONFIG_HOME/zsh # ZSH homeOh My Zsh
export ZSH="$ZDOTDIR/ohmyzsh" # ohmyzsh installation.Prompt
Section titled “Prompt”Starship
export STARSHIP_CONFIG=$XDG_CONFIG_HOME/starship.toml # Starship configurationexport STARSHIP_CACHE=$XDG_CACHE_HOME/starship # Starship configuration cacheWindow Manager
Section titled “Window Manager”Sway
export SWAY_HOME=$XDG_CONFIG_HOME/sway/ # Sway configuration files