Skip to content

Commit

Permalink
feat(debugging): deprecate ZSH_-prefixed var name
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Jun 14, 2020
1 parent 69d73b8 commit 2b5de18
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions zsh-abbr.zsh
Expand Up @@ -10,6 +10,9 @@
# Should `abbr-load` run before every `abbr` command? (default true)
ABBR_AUTOLOAD=${ABBR_AUTOLOAD:-${ZSH_ABBR_AUTOLOAD:-1}}

# Log debugging messages?
ABBR_DEBUG=${ABBR_DEBUG:-${ZSH_ABBR_DEBUG:-0}}

# Whether to add default bindings (expand on SPACE, expand and accept on ENTER,
# add CTRL for normal SPACE/ENTER; in incremental search mode expand on CTRL+SPACE)
# (default true)
Expand Down Expand Up @@ -49,6 +52,7 @@ _abbr() {
# Deprecation notices for values that could be meaningfully set after initialization
if ! (( ABBR_LOADING_USER_ABBREVIATIONS )); then
(( ${+ZSH_ABBR_AUTOLOAD} )) && _abbr_deprecated ZSH_ABBR_AUTOLOAD ABBR_AUTOLOAD
(( ${+ZSH_ABBR_DEBUG} )) && _abbr_deprecated ZSH_ABBR_DEBUG ABBR_DEBUG
(( ${+ZSH_ABBR_DRY_RUN} )) && _abbr_deprecated ZSH_ABBR_DRY_RUN ABBR_DRY_RUN
(( ${+ZSH_ABBR_FORCE} )) && _abbr_deprecated ZSH_ABBR_FORCE ABBR_FORCE
(( ${+ZSH_ABBR_QUIET} )) && _abbr_deprecated ZSH_ABBR_QUIET ABBR_QUIET
Expand Down

0 comments on commit 2b5de18

Please sign in to comment.