Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions dot_zshenv.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"

# Zsh config location
export ZDOTDIR="$XDG_CONFIG_HOME/zsh"
# Zsh config location (disabled - using ~/.zshrc directly for simplicity)
# export ZDOTDIR="$XDG_CONFIG_HOME/zsh"

# Locale
export LANG=en_US.UTF-8
Expand Down
12 changes: 10 additions & 2 deletions dot_zshrc.tmpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,16 @@
# =============================================================================
# XDG Base Directory (fallback if .zshenv not sourced)
# =============================================================================
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"

# =============================================================================
# Instant prompt (show prompt immediately, load rest async)
# =============================================================================
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/starship/init.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/starship/init.zsh"
if [[ -r "${XDG_CACHE_HOME}/starship/init.zsh" ]]; then
source "${XDG_CACHE_HOME}/starship/init.zsh"
fi

# =============================================================================
Expand Down
Loading