summaryrefslogtreecommitdiff
path: root/debian/zshrc
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2020-02-16 17:35:57 +0100
committerAxel Beckert <abe@deuxchevaux.org>2020-02-16 17:58:42 +0100
commitc7b64d0b57bd904279b7d17452e0ba553c0009c6 (patch)
tree319e6988761c3f55c2083bb29faac2d88a64628c /debian/zshrc
parent09ab159217771479a944fa84334dc4587e3c4f23 (diff)
downloadzsh-c7b64d0b57bd904279b7d17452e0ba553c0009c6.tar.gz
zsh-c7b64d0b57bd904279b7d17452e0ba553c0009c6.zip
Apply changes from Ubuntu's zsh 5.7.1-1ubuntu2 package
… 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
Diffstat (limited to 'debian/zshrc')
-rw-r--r--debian/zshrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/debian/zshrc b/debian/zshrc
index 45aebde31..54681368e 100644
--- a/debian/zshrc
+++ b/debian/zshrc
@@ -102,3 +102,11 @@ zstyle ':completion:*:sudo:*' command-path /usr/local/sbin \
(( ${+aliases[run-help]} )) && unalias run-help
autoload -Uz run-help
+
+# If you don't want compinit called here, place the line
+# skip_global_compinit=1
+# in your $ZDOTDIR/.zshenv or $ZDOTDIR/.zprofile
+if [[ -z "$skip_global_compinit" ]]; then
+ autoload -U compinit
+ compinit
+fi