Add the possibility to rename abbreviations

The abbr function doesn't have the possiblity to rename abbreviations.
You have to delete the old one and create a new one. This commit adds
this functionality and uses the syntax:

abbr -r OLD_KEY NEW_KEY

Fixes #2155.
This commit is contained in:
Radomír Bosák
2016-12-01 22:19:48 +01:00
committed by Kurtis Rader
parent a0d9db94cb
commit 1fbcb1ee9d
5 changed files with 89 additions and 0 deletions

View File

@@ -1,2 +1,7 @@
abbr: no such abbreviation 'NOT_AN_ABBR'
abbr: abbreviation cannot have spaces in the key
abbr: no such abbreviation '__abbr6'
abbr: abbreviation cannot have spaces in the key
abbr: option requires an argument -- -r
abbr: Unexpected argument -- __abbr10
abbr: abbreviation '__abbr12' already exists, cannot rename