summaryrefslogtreecommitdiff
path: root/debian/zshrc
AgeCommit message (Collapse)AuthorFilesLines
2021-09-15debian/zshrc: Don't use grep to check if we're in UbuntuMarco Trevisan (Treviño)1-1/+2
ZSH provides already everything to grep a file without having to use external programs, that can only cause a slowdown in the ZSH initialization. This can save some milliseconds at each zsh initialization, as we avoid a fork. Merges MR!2.
2020-02-17d/zshrc: Tighten regexDaniel Shahaf1-1/+1
It matched VERSION_ID and might match other keys or values as well.
2020-02-17Fix advice in comment: zprofile isn't sourced by non-login interactive shells.Daniel Shahaf1-1/+1
2020-02-16debian/zshrc: Enable completions only on Ubuntu and derivatives by defaultAxel Beckert1-1/+1
2020-02-16Apply changes from Ubuntu's zsh 5.7.1-1ubuntu2 packageAxel Beckert1-0/+8
… except all debian/changelog entries and modifying the Maintainer field. This includes: * debian/zshrc: Enable completions by default, unless skip_global_compinit is set. * Support cross-compiling: + Adjust upstream autoconf cross-compile default fallbacks. + Skip zcompile when cross-compiling. + Add libelf-dev build-dependency. Gbp-Dch: Full
2016-01-05zshrc: Make expansion robust with NO_UNSETFrank Terbeck1-1/+1
Thanks: Marc Chantreux on #pkg-zsh (freenode)
2013-04-22Add sequence and bindings for BackSpace keyFrank Terbeck1-24/+28
2013-03-28Make zle-line-init and -finish more robust against weird option setsFrank Terbeck1-0/+2
Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
2012-08-08Print directly from $terminfo instead of using `echoti'Frank Terbeck1-2/+2
The result is the same, plus this protects us from people who feel like messing with the value of $TERM... Suggested-by: Mikael Magnusson <mikachu@gmail.com> Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
2012-08-08Do not use echoti {smkx,rmkx} unconditionallyFrank Terbeck1-8/+18
If a terminal - like the linux kernel's virtual console - is missing those terminfo entries, that will cause annoying output like: zle-line-init:echoti:1: no such terminfo capability: rmkx zle-line-init:echoti:1: no such terminfo capability: smkx for each and every prompt. This tests for the features availability and notes missing ones in a new array `$debian_missing_features'. Signed-off-by: Frank Terbeck <ft@bewatermyfriend.org>
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