Accepting request 93396 from shells

- Add custom completion support via /etc/zsh_completion.d 
- Fix build with new ncurses library

OBS-URL: https://build.opensuse.org/request/show/93396
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zsh?expand=0&rev=34
This commit is contained in:
Stephan Kulow 2011-11-25 10:21:37 +00:00 committed by Git OBS Bridge
commit 348616527b
3 changed files with 23 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Nov 24 09:00:37 UTC 2011 - idoenmez@suse.de
- Add custom completion support via /etc/zsh_completion.d
- Fix build with new ncurses library
-------------------------------------------------------------------
Mon Aug 1 23:17:10 UTC 2011 - crrodriguez@opensuse.org

View File

@ -129,7 +129,11 @@ perl -p -i -e 's|/usr/local/bin|%{_bindir}|' \
--enable-cap \
--enable-multibyte \
--enable-pcre \
--with-term-lib=ncursesw \
%if 0%{?suse_version} >= 1220
--with-term-lib="ncursesw tinfo" \
%else
--with-term-lib="ncursesw" \
%endif
--enable-cflags="%{optflags} %(ncursesw6-config --cflags)" \
--enable-ldflags="%(ncursesw6-config --libs)"
@ -170,6 +174,9 @@ install -m 0755 -Dd %{buildroot}/{etc,bin}
%if 0%{?suse_version}
# install SUSE configuration
install -m 0644 %{SOURCE1} %{SOURCE2} %{SOURCE3} %{buildroot}%{_sysconfdir}
# Create custom completion directory
mkdir %{buildroot}/etc/zsh_completion.d
%endif
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
@ -267,6 +274,10 @@ rm -rf %{buildroot}
%config(noreplace) %{_sysconfdir}/skel/.zshrc
%endif
%if 0%{?suse_version}
%dir /etc/zsh_completion.d
%endif
%{_bindir}/zsh
/bin/zsh
%{_libdir}/zsh/

5
zshrc
View File

@ -2,6 +2,11 @@
# to re-implement here
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
# zsh line editing
: ${ZSHEDIT:="emacs"}
: ${TERM:=linux}