# --- This file has been auto-generated. For permanent changes alter the appropriate block in the README.org. ---
# Path to syntax highlighting installed by Nix
ZSH_SYNTAX_HIGHLIGHTING="${HOME}/.nix-profile/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh"

# Load syntax highlighting if available
if [ -f "$ZSH_SYNTAX_HIGHLIGHTING" ]; then
    source "$ZSH_SYNTAX_HIGHLIGHTING"
fi

# Initialize Starship prompt
if command -v starship >/dev/null 2>&1; then
    eval "$(starship init zsh)"
fi

source /etc/profile.d/99-alias-functions.sh
eval "$(/run/current-system/sw/bin/z.lua --init zsh)"
cd() {
    if [ "$#" -eq 0 ]; then
      builtin cd ~
    else
      builtin cd "$@" || return
    fi

    command z "$PWD"
  }
