Skip to content

Commit

Permalink
feat(user abbreviation file): respect XDG_CONFIG_HOME if defined
Browse files Browse the repository at this point in the history
instead of hard-coding `$HOME/.config`, respect `XDG_CONFIG_HOME`, if available
  • Loading branch information
baod-rate authored and olets committed Sep 8, 2022
1 parent 82fc2b5 commit 5d59cd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zsh-abbr.zsh
Expand Up @@ -37,7 +37,7 @@ typeset -gi ABBR_QUIETER=${ABBR_QUIETER:-0}
typeset -g ABBR_TMPDIR=${ABBR_TMPDIR:-${${TMPDIR:-/tmp}%/}/zsh-abbr/}

# File abbreviations are stored in
typeset -g ABBR_USER_ABBREVIATIONS_FILE=${ABBR_USER_ABBREVIATIONS_FILE:-$HOME/.config/zsh/abbreviations}
typeset -g ABBR_USER_ABBREVIATIONS_FILE=${ABBR_USER_ABBREVIATIONS_FILE:-${XDG_CONFIG_HOME:-$HOME/.config}/zsh/abbreviations}

# FUNCTIONS
# ---------
Expand Down

0 comments on commit 5d59cd0

Please sign in to comment.