summaryrefslogtreecommitdiff
path: root/debian/zshrc
AgeCommit message (Collapse)AuthorFilesLines
2012-03-04Use stricter options with autoloadFrank Terbeck1-1/+1
-U suppresses alias expansion while the function is loaded. And -z forces zsh-style autoloading semantics (instead of the optional ksh-style, which someone could have set in a files that is sourced earlier than the zshrc file). Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
2012-03-04Only unalias `run-help' if the alias actually existsFrank Terbeck1-1/+1
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
2012-03-04Un-tabified and rearranged zstyle callFrank Terbeck1-2/+7
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
2012-03-04Rewrite keyboard handling in zshrcFrank Terbeck1-27/+67
This change makes proper use of `$terminfo[]', because it makes sure that zle (zsh's line editor) puts the terminal into application mode while it is running. Then - and ONLY then - are the values from the `$terminfo[]' array valid. While doing that this also does this: a) Refactor the actual binding code b) Do not bind non-default vi-* widgets to Up and Down. The change in "b)" may be controversial because it reverts long standing debian-zshrc behaviour. However, the #zsh channel on freenode gets a *lot* of people complaining about this from debian and ubuntu systems. There even was a bug report about this: #383737. Clint commented like this: > Unfortunately this boils down to a binary division in a fundamental > belief, and either way people are unhappy. I agree. But I disagree, that the solution is to keep the non-default behaviour in that case. The package should keep the default zsh behaviour with things that boil down to "fundamental belief" and leave it to the user to decide. The bindings that were the most controversial were `Up' and `Down' bound to vi-up/down-line-or-history in viins and vicmd. This patch binds both keys to the less surprising up/down-line-or-history bindings. Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
2011-03-02Initial `debian/' importFrank Terbeck1-0/+43