SHA256
1
0
forked from pool/zsh

- Fix custom completion support via /etc/zsh_completion.d

- Add trim-unneeded-completions.patch to remove unneeded completions
  when building for openSUSE

OBS-URL: https://build.opensuse.org/package/show/shells/zsh?expand=0&rev=117
This commit is contained in:
Ismail Dönmez 2013-03-21 10:20:30 +00:00 committed by Git OBS Bridge
parent 5659994e95
commit 9918aee7eb
4 changed files with 28 additions and 5 deletions

View File

@ -0,0 +1,13 @@
Index: zsh-5.0.2/Src/Zle/complete.mdd
===================================================================
--- zsh-5.0.2.orig/Src/Zle/complete.mdd
+++ zsh-5.0.2/Src/Zle/complete.mdd
@@ -1,7 +1,7 @@
name=zsh/complete
link=either
load=yes
-functions='Completion/*comp* Completion/AIX/*/* Completion/BSD/*/* Completion/Base/*/* Completion/Cygwin/*/* Completion/Darwin/*/* Completion/Debian/*/* Completion/Linux/*/* Completion/Mandriva/*/* Completion/Redhat/*/* Completion/Solaris/*/* Completion/openSUSE/*/* Completion/Unix/*/* Completion/X/*/* Completion/Zsh/*/*'
+functions='Completion/*comp* Completion/Base/*/* Completion/Linux/*/* Completion/openSUSE/*/* Completion/Unix/*/* Completion/X/*/* Completion/Zsh/*/*'
moddeps="zsh/zle"

View File

@ -1,3 +1,10 @@
-------------------------------------------------------------------
Thu Mar 21 10:17:56 UTC 2013 - idonmez@suse.com
- Fix custom completion support via /etc/zsh_completion.d
- Add trim-unneeded-completions.patch to remove unneeded completions
when building for openSUSE
-------------------------------------------------------------------
Sun Jan 27 20:53:10 UTC 2013 - dmitry_r@opensuse.org

View File

@ -38,6 +38,7 @@ Source17: zshprompt.pl
%endif
Patch1: zsh-zypper-completion.patch
Patch2: zsh-osc-suseversion.patch
Patch3: trim-unneeded-completions.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version}
Requires(pre): %{install_info_prereq}
@ -95,6 +96,9 @@ This package contains the Zsh manual in html format.
%setup -q -n %{name}-%{version}
%patch1 -p1
%patch2 -p1
%if 0%{?suse_version}
%patch3 -p1
%endif
# Remove executable bit
chmod 0644 Etc/changelog2html.pl
@ -111,8 +115,9 @@ perl -p -i -e 's|/usr/local/bin|%{_bindir}|' \
%build
%configure \
--enable-site-scriptdir=%{_datadir}/%{name}/site/scripts/ \
--enable-site-fndir=%{_datadir}/%{name}/site/scripts/ \
--enable-fndir=%{_datadir}/%{name}/${version}/functions \
--enable-site-fndir=%{_datadir}/%{name}/site-functions \
--enable-function-subdirs \
--enable-maildir-support \
--with-tcsetpgrp \
--enable-cap \

4
zshrc
View File

@ -3,9 +3,7 @@
source /etc/bash.bashrc
# Custom completion support via /etc/zsh_completion.d
for i in /etc/zsh_completion.d/*(N); do
test -r $i && . $i
done
fpath=( $fpath /etc/zsh_completion.d )
# zsh line editing
: ${ZSHEDIT:="emacs"}