diff options
author | Elis Axelsson <elis.axelsson@gmail.com> | 2016-05-06 16:15:47 +0200 |
---|---|---|
committer | Fabian Homborg <FHomborg@gmail.com> | 2016-05-06 16:17:01 +0200 |
commit | 8ec81393a36dea2a76dd85a3858a2835b5c32ff6 (patch) | |
tree | 2eaa858e5400e092754555e9043485531419377b | |
parent | 49838c768d850ebb530f5f048165cb51f6178d63 (diff) |
Change abbr to allow non-letter keys (#2996)
(cherry picked from commit 1c6f6df2b3ae4a13d89242964ca3dbd3c146d1fe)
-rw-r--r-- | share/functions/abbr.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/abbr.fish b/share/functions/abbr.fish index bb50ec02..8606f84b 100644 --- a/share/functions/abbr.fish +++ b/share/functions/abbr.fish @@ -85,7 +85,7 @@ function abbr --description "Manage abbreviations" set key $kv[1] set value $kv[2] # ensure the key contains at least one non-space character - if not string match -qr "\w" -- $key + if not string match -qr "[^\s]" -- $key printf ( _ "%s: abbreviation must have a non-empty key\n" ) abbr >&2 return 1 end |