Skip to content

Commit

Permalink
fix(erase): universal abbreviations can be erased
Browse files Browse the repository at this point in the history
  • Loading branch information
olets committed Jan 12, 2020
1 parent fbb7053 commit 1d67c8c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions abbr
Original file line number Diff line number Diff line change
Expand Up @@ -329,8 +329,9 @@ function abbr() {
else
source "$TMPDIR"/abbr_universals

if (( ${+ABBR[$1]} )); then
unset "ABBR[${(b)1}]"
if (( ${+ABBRS_UNIVERSAL[$1]} )); then
unset "ABBRS_UNIVERSAL[${(b)1}]"
abbr_sync_global
else
abbr_error " -e: No universal abbreviation named $1"
return
Expand Down

0 comments on commit 1d67c8c

Please sign in to comment.