summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
db06856)
Hi Martin,
please consider another 1 byte patch ;) with recently added
abbreviations I found myself cursing too often while typing smth like
dpkg -L ...
so I augmented magic-abbrev-expand to include "-" into the "last
word"... patch is attached
Cheers
--
Yaroslav O. Halchenko
Postdoctoral Fellow, Department of Psychological and Brain Sciences
Dartmouth College, 419 Moore Hall, Hinman Box 6207, Hanover, NH 03755
Phone: +1 (603) 646-9834 Fax: +1 (603) 646-1419
WWW: http://www.linkedin.com/in/yarik
magic-abbrev-expand() {
local MATCH
magic-abbrev-expand() {
local MATCH
- LBUFFER=${LBUFFER%%(#m)[_a-zA-Z0-9]#}
+ LBUFFER=${LBUFFER%%(#m)[-_a-zA-Z0-9]#}
LBUFFER+=${abbreviations[$MATCH]:-$MATCH}
zle self-insert
}
LBUFFER+=${abbreviations[$MATCH]:-$MATCH}
zle self-insert
}