Skip to content

Shell & Prompt

Terminal window
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:

Terminal window
export BASH_COMPLETION_USER_FILE="$XDG_CONFIG_HOME"/bash-completion/bash_completion

ZSH:

Terminal window
export ZDOTDIR=$XDG_CONFIG_HOME/zsh # ZSH home

Oh My Zsh

Terminal window
export ZSH="$ZDOTDIR/ohmyzsh" # ohmyzsh installation.

Starship

Terminal window
export STARSHIP_CONFIG=$XDG_CONFIG_HOME/starship.toml # Starship configuration
export STARSHIP_CACHE=$XDG_CACHE_HOME/starship # Starship configuration cache

Sway

Terminal window
export SWAY_HOME=$XDG_CONFIG_HOME/sway/ # Sway configuration files