Hello community,

here is the log from the commit of package zsh.1611 for openSUSE:12.3:Update 
checked in at 2013-05-02 14:36:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.3:Update/zsh.1611 (Old)
 and      /work/SRC/openSUSE:12.3:Update/.zsh.1611.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "zsh.1611"

Changes:
--------
New Changes file:

--- /dev/null   2013-04-05 00:01:41.916011506 +0200
+++ /work/SRC/openSUSE:12.3:Update/.zsh.1611.new/zsh.changes    2013-05-02 
14:36:31.000000000 +0200
@@ -0,0 +1,698 @@
+-------------------------------------------------------------------
+Mon Apr 22 09:26:05 UTC 2013 - idon...@suse.com
+
+- Don't set globdots option, it might lead to unexpected problems (bnc#815556)
+
+-------------------------------------------------------------------
+Thu Mar 21 10:17:56 UTC 2013 - idon...@suse.com
+
+- Fix custom completion support via /etc/zsh_completion.d (bnc#811356)
+- Add trim-unneeded-completions.patch to remove unneeded completions
+  when building for openSUSE
+
+-------------------------------------------------------------------
+Sun Jan 27 20:53:10 UTC 2013 - dmitr...@opensuse.org
+
+- Fix zypper completion [bnc#752112]
+  * zsh-zypper-completion.patch
+- Fix osc completion (SUSE versions)
+  * zsh-osc-suseversion.patch
+
+-------------------------------------------------------------------
+Mon Dec 24 15:53:42 UTC 2012 - idon...@suse.com
+
+- Update to version 5.0.2
+  * Numeric constants in mathematical contexts can contain
+    underscores.
+  * functions -T turns on tracing for specific functions.
+- See the included NEWS file for other changes.
+
+-------------------------------------------------------------------
+Fri Nov 16 03:49:21 UTC 2012 - crrodrig...@opensuse.org
+
+- Test suite runs flaky in qemu-arm, disable it for now. 
+
+-------------------------------------------------------------------
+Fri Oct 26 14:58:46 UTC 2012 - co...@suse.com
+
+- buildrequire groff needed to build helpfiles
+
+-------------------------------------------------------------------
+Thu Aug  9 21:11:47 UTC 2012 - idon...@suse.com
+
+- Version update to 5.0.0
+  * No real changes since 4.3.17
+
+-------------------------------------------------------------------
+Sun Jul 22 13:20:50 UTC 2012 - co...@suse.com
+
+- we need tex2html too, which is provided by texinfo
+
+-------------------------------------------------------------------
+Thu Jul 19 07:58:15 UTC 2012 - co...@suse.com
+
+- buildrequire makeinfo to fix build
+
+-------------------------------------------------------------------
+Mon Feb 27 09:11:27 UTC 2012 - idon...@suse.com
+
+- Update to version 4.3.17
+  * Contains fixes for possible speed regression introduced 
+    in 4.3.15 (new option HASH_EXECUTABLES_ONLY)
+  * Improvements to (bash) completion and shell emulation mode 
+- Drop all the patches, all upstream
+
+-------------------------------------------------------------------
+Tue Feb  7 14:27:18 CET 2012 - hma...@suse.de
+
+- add zsh-enable-openSUSE-completion-functions.patch: Enable
+  installation of openSUSE completion functions which are upstream
+
+-------------------------------------------------------------------
+Tue Jan 31 11:08:53 UTC 2012 - idon...@suse.com
+
+- Update _osc completion 
+
+-------------------------------------------------------------------
+Sat Dec 31 10:44:15 UTC 2011 - idon...@suse.com
+
+- Instead of disabling c02cond manually, add upstream patch to
+  automatically disable it on noatime mounted systems.
+
+-------------------------------------------------------------------
+Tue Dec 20 09:27:59 UTC 2011 - idon...@suse.com
+
+- Update to zsh 4.3.15
+  * Fix POSIX compatibility
+
+-------------------------------------------------------------------
+Wed Dec  7 13:28:25 UTC 2011 - idon...@suse.com
+
+- Update to zsh 4.3.14
+  * Drop 74eed99c312de05e19b54ba6b5d37a0aeb4ba713.patch and
+    724fd07a67f135c74eba57e9f25fd342201ec722.patch, fixed upstream
+  * Fix for nanosecond timestamp support
+
+-------------------------------------------------------------------
+Mon Dec  5 09:40:23 UTC 2011 - idoen...@suse.de
+
+- Fix license to be MIT, zsh seems to be using the "Modern" variant
+  of the license text.
+- Import git commits 74eed99c312de05e19b54ba6b5d37a0aeb4ba713 and
+  724fd07a67f135c74eba57e9f25fd342201ec722
+
+  * metafy() added null termination even if buffer was not modifiable
+  * Fix uninitialised memory after lexer realloc
+
+-------------------------------------------------------------------
+Wed Nov 30 21:49:26 UTC 2011 - idoen...@suse.de
+
+- Update to zsh 4.3.13
+  * There are no significant feature changes to the shell itself, 
+    although many bug fixes and improvements to functions.
+  * See included ChangeLog for details
+- Drop zsh-4.3.12-ksh-emulation-syntax-checking.patch, 
+  fixed upstream
+
+-------------------------------------------------------------------
+Tue Nov 29 14:19:04 UTC 2011 - idoen...@suse.de
+
+- Cleanup spec file
+- Make /bin/zsh a symlink to /usr/bin/zsh
+
+-------------------------------------------------------------------
+Mon Nov 28 08:36:51 UTC 2011 - idoen...@suse.de
+
+- Update to 4.3.12-test3
+  * See included ChangeLog for details
+- Drop zsh-findproc.patch and zsh-kill-suspended-job.patch, fixed
+  upstream.
+
+-------------------------------------------------------------------
+Thu Nov 24 09:00:37 UTC 2011 - idoen...@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 - crrodrig...@opensuse.org
+
+- Enable pcre module 
+- Build against ncurses6w instead of plain old ncurses5
+
+-------------------------------------------------------------------
+Wed Jun 29 12:35:50 UTC 2011 - ch...@computersalat.de
+
+- enable build for RHEL and friends (CentOS, Fedora)
+  o merge with 4.2.6 from RHEL
+  o add/rework RHEL patch (BZ-488943-ksh-emulation-syntax-checking)
+  o add several *.rhs files
+  o disable E01options test
+- add subpkg htmldoc
+- fix deps
+  o fdupes >= suse_version 1110
+
+-------------------------------------------------------------------
+Fri Jun 17 13:35:56 UTC 2011 - idon...@novell.com
+
+- Add zsh-kill-suspended-job.patch: fix killing suspended jobs 
+- Add zsh-findproc.patch: fix findproc() to find stopped jobs
+
+-------------------------------------------------------------------
+Wed Jun  1 13:17:38 UTC 2011 - idon...@novell.com
+
+- Update to zsh 4.3.12 
+- Dropped openSUSE specific completions, all are upstreamed now
+
+-------------------------------------------------------------------
+Tue Apr 26 15:43:10 UTC 2011 - idoen...@novell.com
+
+- Enable make check 
+
+-------------------------------------------------------------------
+Thu Apr 21 09:19:55 UTC 2011 - idoen...@novell.com
+
+- Disable zsh debug
+- Enable strict aliasing again 
+
+-------------------------------------------------------------------
+Wed Apr 20 12:07:36 UTC 2011 - idoen...@novell.com
+
+- Update to 4.3.11-dev-2, many crash fixes 
+
+-------------------------------------------------------------------
+Tue Mar 15 13:40:24 UTC 2011 - ism...@namtrac.org
+
+- Fix crash with ${foo:0:} 
+
+-------------------------------------------------------------------
+Wed Dec 29 02:07:58 UTC 2010 - cristian.rodrig...@opensuse.org
+
+- Update to version 4.3.11
+* The completion system now has a style path-completion.
+* new "zsystem" builtin whose subcommands perform system level tasks
+* Added "D" and "Z" flag in parameter expansion
+* Lots of other bugfixes/improvements, see Changelog
+
+-------------------------------------------------------------------
++++ 501 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.3:Update/.zsh.1611.new/zsh.changes

New:
----
  dotzshrc.rh
  trim-unneeded-completions.patch
  zlogin.rhs
  zlogout.rhs
  zprofile
  zprofile.rhs
  zsh-5.0.2.tar.bz2
  zsh-osc-suseversion.patch
  zsh-zypper-completion.patch
  zsh.changes
  zsh.spec
  zshenv
  zshenv.rhs
  zshprompt.pl
  zshrc
  zshrc.rhs

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ zsh.spec ++++++
#
# spec file for package zsh
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           zsh
Version:        5.0.2
Release:        0
Summary:        Shell with comprehensive completion
License:        MIT
Group:          System/Shells
Url:            http://www.zsh.org
Source0:        
http://sourceforge.net/projects/zsh/files/zsh/%{version}/zsh-%{version}.tar.bz2
Source1:        zshrc
Source2:        zshenv
Source3:        zprofile
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
Source11:       zlogin.rhs
Source12:       zlogout.rhs
Source13:       zprofile.rhs
Source14:       zshrc.rhs
Source15:       zshenv.rhs
Source16:       dotzshrc.rh
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}
%if 0%{?suse_version} >= 1110
BuildRequires:  fdupes
BuildRequires:  yodl
%endif
%if 0%{?suse_version} >= 1210
BuildRequires:  groff
BuildRequires:  makeinfo
BuildRequires:  texinfo
%endif
%else
Requires(pre):  /sbin/install-info
Requires(pre):  fileutils
Requires(pre):  grep
%endif

BuildRequires:  libcap-devel
BuildRequires:  ncurses-devel
BuildRequires:  pcre-devel
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
BuildRequires:  libtermcap-devel
BuildRequires:  tetex
BuildRequires:  texi2html
BuildRequires:  texinfo
%endif

%description
Zsh is a UNIX command interpreter (shell) that resembles the Korn shell
(ksh). It is not completely compatible. It includes many enhancements,
notably in the command-line editor, options for customizing its
behavior, file name globbing, features to make C-shell (csh) users feel
at home, and extra features drawn from tcsh (another `custom' shell).
Zsh is well known for its command line completion.

%package htmldoc

Summary:        Zsh shell manual in html format
Group:          System/Shells
Provides:       %{name}-html = %{version}
Obsoletes:      %{name}-html < %{version}

%description htmldoc
The zsh shell is a command interpreter usable as an interactive login
shell and as a shell script command processor.  Zsh resembles the ksh
shell (the Korn shell), but includes many enhancements.  Zsh supports
command line editing, built-in spelling correction, programmable
command completion, shell functions (with autoloading), a history
mechanism, and more.

This package contains the Zsh manual in html format.

%prep
%setup -q -n %{name}-%{version}
%patch1 -p1
%patch2 -p1
%if 0%{?suse_version}
%patch3 -p1
%endif

# Remove executable bit
chmod 0644 Etc/changelog2html.pl

%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
  cp -p %{SOURCE17} .
%endif

# Fix bindir path in some files
perl -p -i -e 's|/usr/local/bin|%{_bindir}|' \
    Doc/intro.ms Misc/globtests.ksh Misc/globtests \
    Misc/lete2ctl Util/check_exports Util/helpfiles \
    Util/reporter

%build
%configure \
    --enable-fndir=%{_datadir}/%{name}/${version}/functions \
    --enable-site-fndir=%{_datadir}/%{name}/site-functions \
    --enable-function-subdirs \
    --enable-maildir-support \
    --with-tcsetpgrp \
    --enable-cap \
    --enable-multibyte \
    --enable-pcre \
    --with-term-lib="ncursesw" \
    --enable-cflags="%{optflags} %(ncursesw6-config --cflags)" \
    --enable-ldflags="%(ncursesw6-config --libs)"

make all info html

# make help text files
install -d Help
pushd Help/
troff -Tlatin1 -t -mandoc ../Doc/zshbuiltins.1 | \
        grotty -cbou | \
        sed -e 's/±/{+|-}/' | \
        ../Util/helpfiles
popd

# generate intro.ps
groff -Tps -ms Doc/intro.ms > intro.ps

# better name for html documentation
install -d -m 0755 Doc/htmldoc/
mv Doc/*.html Doc/htmldoc

# remove some unwanted files in Etc/
rm -f Etc/Makefile* Etc/*.yo

%install
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
    rm -rf %{buildroot}
%endif

%if 0%{?suse_version}
%makeinstall install.info
%else
  make DESTDIR=%{buildroot} install install.info
%endif

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}%{_sysconfdir}/zsh_completion.d
%endif

%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
# install RHEL || CentOS || Fedora configuration
for i in zlogin zlogout zprofile zshrc zshenv; do
  install -m 0644 $RPM_SOURCE_DIR/${i}.rhs %{buildroot}%{_sysconfdir}/$i
  install -D -m 0644 %{SOURCE16} %{buildroot}%{_sysconfdir}/skel/.zshrc
done
%endif

# install help files
install -m 0755 -Dd    %{buildroot}%{_datadir}/%{name}/%{version}/help
install -m 0644 Help/* %{buildroot}%{_datadir}/%{name}/%{version}/help/

# link zsh binary
ln -sf %{_bindir}/zsh %{buildroot}/bin/zsh

# Remove versioned zsh binary
rm -f %{buildroot}%{_bindir}/zsh-*

%if 0%{?suse_version} >= 1110
%fdupes %{buildroot}
%endif

%check
%if ! 0%{?qemu_user_space_build}
%if 0%{?suse_version}
make check
%else
# FixMe: sometimes failing Test
#+ fn:echo:2: write error: broken pipe
#+ fn:2: write error: inappropriate ioctl for device
mv Test/E01options.ztst Test/E01options.ztst.mvd
%ifarch s390 s390x ppc ppc64
  ( cd Test
    mkdir skipped
    mv Y*.ztst skipped )
%endif
  ZTST_verbose=0 make test
%endif
%endif
%preun
%if 0%{?suse_version}
  :
%else
  if [ "$1" = 0 ] ; then
    /sbin/install-info --delete %{_infodir}/zsh.info.gz %{_infodir}/dir \
      --entry="* zsh: (zsh).                  An enhanced bourne shell."
  fi
%endif

%post
%if 0%{?suse_version}
  %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%else
if [ ! -f %{_sysconfdir}/shells ]; then
  echo "%{_bindir}/zsh" > %{_sysconfdir}/shells
else
  grep -q "^%{_bindir}/zsh$" %{_sysconfdir}/shells || echo "%{_bindir}/zsh" >> 
%{_sysconfdir}/shells
fi

/sbin/install-info %{_infodir}/zsh.info.gz %{_infodir}/dir \
  --entry="* zsh: (zsh).                  An enhanced bourne shell."
%endif

%postun
%if 0%{?suse_version}
  %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
%else
  if [ "$1" = 0 ] ; then
    if [ -f %{_sysconfdir}/shells ] ; then
      TmpFile=`%{_bindir}/mktemp /tmp/.zshrpmXXXXXX`
      grep -v '^%{_bindir}/zsh$' %{_sysconfdir}/shells > $TmpFile
      cp -f $TmpFile %{_sysconfdir}/shells
      rm -f $TmpFile
      chmod 644 %{_sysconfdir}/shells
    fi
  fi
%endif

%files
%defattr(-,root,root)
%doc ChangeLog FEATURES LICENCE MACHINES META-FAQ NEWS README
%doc Etc/* intro.ps Misc/compctl-examples

%config(noreplace) %{_sysconfdir}/zshrc
%config(noreplace) %{_sysconfdir}/zshenv
%config(noreplace) %{_sysconfdir}/zprofile
%if 0%{?rhel_version} || 0%{?centos_version} || 0%{?fedora_version}
%config(noreplace) %{_sysconfdir}/zlogin
%config(noreplace) %{_sysconfdir}/zlogout
%config(noreplace) %{_sysconfdir}/skel/.zshrc
%endif

%if 0%{?suse_version}
%dir %{_sysconfdir}/zsh_completion.d
%endif

%{_bindir}/zsh
/bin/zsh
%{_libdir}/zsh/
%{_datadir}/zsh/
%{_infodir}/zsh.info*.gz
%{_mandir}/man1/zsh*.1.gz

%files htmldoc
%defattr(-,root,root)
%doc Doc/htmldoc/*

%changelog
++++++ dotzshrc.rh ++++++
#
# .zshrc is sourced in interactive shells.
# It should contain commands to set up aliases,
# functions, options, key bindings, etc.
#

autoload -U compinit
compinit

#allow tab completion in the middle of a word
setopt COMPLETE_IN_WORD

## keep background processes at full speed
#setopt NOBGNICE
## restart running processes on exit
#setopt HUP

## history
#setopt APPEND_HISTORY
## for sharing history between zsh processes
#setopt INC_APPEND_HISTORY
#setopt SHARE_HISTORY

## never ever beep ever
#setopt NO_BEEP

## automatically decide when to page a list of completions
#LISTMAX=0

## disable mail checking
#MAILCHECK=0

# autoload -U colors
#colors
++++++ trim-unneeded-completions.patch ++++++
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"
 
++++++ zlogin.rhs ++++++
#
# /etc/zlogin and .zlogin are sourced in login shells.  It should
# contain commands that should be executed only in
# login shells.  It should be used to set the terminal
# type and run a series of external commands (fortune,
# msgs, from, etc).
#

++++++ zlogout.rhs ++++++
#
#
# /etc/zlogout and ~/.zlogout are run when an interactive session ends
#
#

clear
++++++ zprofile ++++++
# we source the general profile here so we dont have to
# reimplement it
setopt nonomatch
source /etc/profile
unsetopt nonomatch
# put your own login shell specific configuration below
# this line 

++++++ zprofile.rhs ++++++
#
# /etc/zprofile and ~/.zprofile are run for login shells
#

PATH="$PATH:$HOME/bin"
export PATH

# source profile
if [ -f /etc/profile ]; then
        source /etc/profile
fi
++++++ zsh-osc-suseversion.patch ++++++
Index: zsh/Completion/openSUSE/Command/_osc
===================================================================
--- zsh.orig/Completion/openSUSE/Command/_osc
+++ zsh/Completion/openSUSE/Command/_osc
@@ -16,8 +16,8 @@
 # version 0.2
 #
 
-OSC_BUILD_TARGETS="openSUSE_11.2 openSUSE_11.3 openSUSE_11.4 openSUSE_12.1 
openSUSE_Tumbleweed openSUSE_Factory SLE_11_SP1"
-OSC_PROJECTS="openSUSE:Factory openSUSE:Tumbleweed openSUSE:12.1 openSUSE:11.4 
openSUSE:11.2 openSUSE:11.3"
+OSC_BUILD_TARGETS="openSUSE_12.1 openSUSE_12.2 openSUSE_12.3 
openSUSE_Tumbleweed openSUSE_Factory SLE_11_SP2"
+OSC_PROJECTS="openSUSE:Factory openSUSE:Tumbleweed openSUSE:12.3 openSUSE:12.2 
openSUSE:12.1"
 
 # user defined variables $OSC_BUILD_TARGETS_EXTRA and
 # $OSC_PROJECTS_EXTRA can add to the project/build target list
++++++ zsh-zypper-completion.patch ++++++
Index: zsh/Completion/openSUSE/Command/_zypper
===================================================================
--- zsh.orig/Completion/openSUSE/Command/_zypper
+++ zsh/Completion/openSUSE/Command/_zypper
@@ -28,11 +28,10 @@ _zypper() {
        local hline
        local -a cmdlist
        local tag=0
-       _call_program help-commands zypper help | while read -A hline; do
+       _call_program help-commands LANG=C zypper help | sed -e 
':a;N;$!ba;s/\n\t\t\t\t/ /g' | while read -A hline; do
            # start parsing with "Global Options:"
            [[ $hline =~ "^Global Options:" ]] && tag=1
            [[ $tag = 0 ]] && continue
-           [[ $hline[1] =~ ^\t\t\t\t ]] && continue
            # all commands have to start with lower case letters
            [[ $hline[1] =~ ^[A-Z] ]] && continue
            (( ${#hline} < 2 )) && continue
@@ -51,7 +50,7 @@ _zypper_cmd_do() {
     local hline
     local -a cmdlist
     local tag=0
-    _call_program help-commands zypper help $cmd | while read -A hline; do
+    _call_program help-commands LANG=C zypper help $cmd | while read -A hline; 
do
        # start parsing from "Options:"
        [[ $hline =~ "^Command options:" ]] && tag=1
        [[ $tag = 0 ]] && continue
++++++ zshenv ++++++
# set global options for all zsh shells here
++++++ zshenv.rhs ++++++
#
# /etc/zshenv is sourced on all invocations of the
# shell, unless the -f option is set.  It should
# contain commands to set the command search path,
# plus other important environment variables.
# .zshenv should not contain commands that produce
# output or assume the shell is attached to a tty.
#

++++++ zshprompt.pl ++++++
#!/usr/bin/perl -w 

#requires Gtk-Perl

use Gtk;
use strict;

set_locale Gtk;
init Gtk;

my $window = new Gtk::Window("toplevel");
$window->signal_connect( "delete_event", \&CloseAppWindow );  
my $table = new Gtk::Table( 20, 6, 0 );
$window->border_width( 5 );
#$window->add( $button );


my $prompt = new Gtk::Entry( 128);
my $log = new Gtk::Text();
$log->set_usize(40,60);
$log->show();
$prompt->show();
#$prompt->set_editable (1);
$prompt->set_text("");
$table->attach( $prompt,0,4,0,4,[ 'expand', 'shrink', 'fill' ],
                'shrink',
                0, 0 ); 

$table->set_row_spacings( 5 ); 
$table->set_col_spacings( 5 ); 

my $currDir = new Gtk::Button( "Current Directory" );
$currDir->show();
$table->attach_defaults( $currDir,0,1,4,6 );

my $errorCode = new Gtk::Button( "Last Return Code" );
$errorCode->show();
$table->attach_defaults( $errorCode,1,2,4,6 );

my $currTime = new Gtk::Button( "Time" );
$currTime->show();
$table->attach_defaults( $currTime,2,3,4,6 );

my $hist = new Gtk::Button( "History Number" );
$hist->show();
$table->attach_defaults( $hist,3,4,4,6 );

my $host = new Gtk::Button( "Hostname" );
$host->show();
$table->attach_defaults( $host,0,1,6,8 );



my $backgroundBlue = new Gtk::Button( "Blue Background" );
$backgroundBlue->show();
$table->attach_defaults( $backgroundBlue,0,1,8,10 );

my $backgroundRed = new Gtk::Button( "Red Background" );
$backgroundRed->show();
$table->attach_defaults( $backgroundRed,1,2,8,10 );

my $backgroundGreen = new Gtk::Button( "Green Background" );
$backgroundGreen->show();
$table->attach_defaults( $backgroundGreen,2,3,8,10 );

my $backgroundYellow = new Gtk::Button( "Yellow Background" );
$backgroundYellow->show();
$table->attach_defaults( $backgroundYellow,3,4,8,10 );

my $backgroundBlack = new Gtk::Button( "Black Background" );
$backgroundBlack->show();
$table->attach_defaults( $backgroundBlack,5,6,8,10 );

my $backgroundWhite = new Gtk::Button( "White Background" );
$backgroundWhite->show();
$table->attach_defaults( $backgroundWhite,6,7,8,10 );

my $backgroundPink = new Gtk::Button( "Pink Background" );
$backgroundPink->show();
$table->attach_defaults( $backgroundPink,7,8,8,10 );





my $textBlue = new Gtk::Button( "Blue Text" );
$textBlue->show();
$table->attach_defaults( $textBlue,0,1,10,12 );

my $textRed = new Gtk::Button( "Red Text" );
$textRed->show();
$table->attach_defaults( $textRed,1,2,10,12 );

my $textGreen = new Gtk::Button( "Green Text" );
$textGreen->show();
$table->attach_defaults( $textGreen,2,3,10,12 );

my $textYellow = new Gtk::Button( "Yellow Text" );
$textYellow->show();
$table->attach_defaults( $textYellow,3,4,10,12 );

my $textBlack = new Gtk::Button( "Black Text" );
$textBlack->show();
$table->attach_defaults( $textBlack,5,6,10,12 );

my $textWhite = new Gtk::Button( "White Text" );
$textWhite->show();
$table->attach_defaults( $textWhite,6,7,10,12 );

my $textPink = new Gtk::Button( "Pink Text" );
$textPink->show();
$table->attach_defaults( $textPink,7,8,10,12 );


my $textDefault = new Gtk::Button( "Default Text" );
$textDefault->show();
$table->attach_defaults( $textDefault,0,1,12,14 );

my $backgroundDefault = new Gtk::Button( "Default Background" );
$backgroundDefault->show();
$table->attach_defaults( $backgroundDefault,1,2,12,14 );



my $set = new Gtk::Button( "Save Settings" );
$set->show();
$table->attach_defaults( $set,0,1,16,18 );

my $xterm = new Gtk::Button( "Test saved settings" );
$xterm->show();
$table->attach_defaults( $xterm,1,2,16,18 );

$table->attach_defaults( $log,0,6,18,20 );


$currDir->signal_connect( "clicked", \&insertButtonText, "%1/" );
$errorCode->signal_connect( "clicked", \&insertButtonText, "%?" );
$currTime->signal_connect( "clicked", \&insertButtonText, "%T" );
$hist->signal_connect( "clicked", \&insertButtonText, "%!" );
$host->signal_connect( "clicked", \&insertButtonText, "%m" );

$backgroundBlue->signal_connect( "clicked", \&insertButtonText, 
"%{\$bg[blue]%}" );
$backgroundRed->signal_connect( "clicked", \&insertButtonText, "%{\$bg[red]%}" 
);
$backgroundGreen->signal_connect( "clicked", \&insertButtonText, 
"%{\$bg[green]%}" );
$backgroundYellow->signal_connect( "clicked", \&insertButtonText, 
"%{\$bg[yellow]%}" );
$backgroundBlack->signal_connect( "clicked", \&insertButtonText, 
"%{\$bg[black]%}" );
$backgroundWhite->signal_connect( "clicked", \&insertButtonText, 
"%{\$bg[white]%}" );
$backgroundPink->signal_connect( "clicked", \&insertButtonText, 
"%{\$bg[magenta]%}" );
$backgroundDefault->signal_connect( "clicked", \&insertButtonText, 
"%{\$bg[default]%}" );




$textBlue->signal_connect( "clicked", \&insertButtonText, "%{\$fg[blue]%}" );
$textRed->signal_connect( "clicked", \&insertButtonText, "%{\$fg[red]%}" );
$textGreen->signal_connect( "clicked", \&insertButtonText, "%{\$fg[green]%}" );
$textYellow->signal_connect( "clicked", \&insertButtonText, "%{\$fg[yellow]%}" 
);
$textBlack->signal_connect( "clicked", \&insertButtonText, "%{\$fg[black]%}" );
$textWhite->signal_connect( "clicked", \&insertButtonText, "%{\$fg[white]%}" );
$textPink->signal_connect( "clicked", \&insertButtonText, "%{\$fg[magenta]%}" );
$textDefault->signal_connect( "clicked", \&insertButtonText, 
"%{\$fg[default]%}" );





$set->signal_connect( "clicked", \&pushEnv );
$xterm->signal_connect( "clicked", \&xterm );

sub xterm
{
my $string="xterm -e zsh -li&";
#$string.=$prompt->get_text();

#$string.="' zsh -li\"& ";

system($string);
# $prompt->append_text( $string );
$log->insert( "", "white", "black", "executing:\n $string\n");
}


sub pushEnv
{
chdir("~");
use Env qw(PS1);
my $pNotSet=0;
open(PROMPT, "+<", ".prompt") or $pNotSet=1;


if($pNotSet)
{
    #$prompt->insert( "", "white", "black", "prompt is not set");
    open(ZSHRC, '>>','.zshrc') or die "cannot open zshrc";
    print ZSHRC ". ~/.prompt\n";
    close (ZSHRC);
}
close (PROMPT);
open(PROMPT, ">", ".prompt");
print PROMPT "export PS1=\"",$prompt->get_text(),"\"\n";

#$prompt->insert( "", "white", "black", $PS1);

close(PROMPT);
close(ZSHRC);
$prompt->grab_focus();

}
$prompt->can_default(1);
$prompt->grab_default();
$table->show();
$window->add( $table );




$window->show();
$prompt->grab_focus();
main Gtk;

exit( 0 );

sub CloseAppWindow
{
   Gtk->exit( 0 );
   return 0;
}


sub insertButtonText 
{
    my ($widget, $txt) = @_;
 $prompt->append_text( $txt );
$prompt->grab_focus();
}
++++++ zshrc ++++++
# read bash.bashrc first for some features we dont want 
# to re-implement here
source /etc/bash.bashrc

# Custom completion support via /etc/zsh_completion.d
fpath=( $fpath /etc/zsh_completion.d )

# zsh line editing
: ${ZSHEDIT:="emacs"}
: ${TERM:=linux}

if [[ "$ZSHEDIT" == "vi" ]] then
    bindkey    -v
else
    bindkey    -e
    bindkey    "^[ "    magic-space
    bindkey    "^[!"    expand-history
fi

# Environment
HISTSIZE=1000
HISTFILE=${HOME}/.zsh_history
SAVEHIST=500

# Prompt on the right side. zsh feature
#RPROMPT="[%T]"

# Set/unset  shell options
setopt   nocorrect pushdtohome autolist nopromptcr
setopt   nocorrectall autocd recexact longlistjobs
setopt   histignoredups pushdsilent appendhistory histexpiredupsfirst
setopt   autopushd pushdminus extendedglob rcquotes
unsetopt bgnice autoparamslash hup

# Setup some basic programmable completions.  To see more examples
# of these, check out /usr/doc/packages/zsh/compctl-examples.
# You you have a slow machine, you might want to comment the lines below
# with compctl in, and comment the below two lines out.
#
# compctl -g '*(-/)' cd pushd
# compctl -g '*(/)' rmdir dircmp
# compctl -j -P % -x 's[-] p[1]' -k signals -- kill
# compctl -j -P % fg bg wait jobs disown
# compctl -A shift
# compctl -caF type whence which
# compctl -F unfunction
# compctl -a unalias
# compctl -v unset typeset declare vared readonly export integer
# compctl -e disable
# compctl -d enable
#
# The default way is the usage of the zsh built-in completer
# Comment the two below lines out, if you are on a slow machine, and
# comment the above compctl lines in.

autoload -U compinit
compinit

# Completion so "cd ..<TAB>" -> "cd ../"
# zstyle ':completion:*' special-dirs ..

# Online help
unalias  run-help 2>/dev/null || true
autoload run-help

# Don't use zsh builtin which
alias which >/dev/null && unalias which

# Common standard keypad and cursor
bindkey    "^[[2~"              yank
bindkey    "^[[3~"              delete-char

# History completion on pgup and pgdown
autoload -U history-search-end
zle -N history-beginning-search-backward-end history-search-end
zle -N history-beginning-search-forward-end history-search-end
bindkey "^[[5~" history-beginning-search-backward-end
bindkey "^[[6~" history-beginning-search-forward-end

if [[ "$TERM" == "xterm" ]] then
    bindkey    "^[2;5~"         yank
    bindkey    "^[3;5~"         delete-char
    bindkey    "^[5;5~"         up-history
    bindkey    "^[6;5~"         down-history
fi
bindkey    "^[[C"               forward-char
bindkey    "^[[D"               backward-char
bindkey    "^[[A"               up-history
bindkey    "^[[B"               down-history

# Avoid network problems
#   ... \177 (ASCII-DEL) and \010 (ASCII-BS)
#       do `backward-delete-char'
# Note: `delete-char' is maped to \033[3~
#       Therefore xterm's responce on pressing
#       key Delete or KP-Delete should be
#       \033[3~ ... NOT \177
bindkey    "^?"         backward-delete-char
bindkey    "^H"         backward-delete-char

# Home and End
if [[ "$TERM" == "xterm" ]] then
    # Normal keypad and cursor of xterm
    bindkey    "^[[1~"  history-search-backward
    bindkey    "^[[4~"  set-mark-command
    bindkey    "^[[H"   beginning-of-line
    bindkey    "^[[F"   end-of-line
    # Home and End of application keypad and cursor of xterm
    bindkey    "^[OH"   beginning-of-line
    bindkey    "^[OF"   end-of-line
    bindkey    "^[O5H"  beginning-of-line
    bindkey    "^[O5F"  end-of-line
else
if [[ "$TERM" == "kvt" ]] then
    bindkey    "^[[1~"  history-search-backward
    bindkey    "^[[4~"  set-mark-command
    bindkey    "^[OH"   beginning-of-line
    bindkey    "^[OF"   end-of-line
else
    # TERM=linux or console
    bindkey    "^[[1~"  beginning-of-line
    bindkey    "^[[4~"  end-of-line
fi
fi

# Application keypad and cursor of xterm
if [[ "$TERM" == "xterm" ]] then
    bindkey    "^[OD"   backward-char
    bindkey    "^[OC"   forward-char
    bindkey    "^[OA"   up-history
    bindkey    "^[OB"   down-history
    # DEC keyboard KP_F1 - KP_F4
    bindkey -s "^[OP"   "^["
    bindkey    "^[OQ"   undo
    bindkey    "^[OR"   undefined-key  
    bindkey    "^[OS"   kill-line
fi
if [[ "$TERM" == "gnome" ]] then
    # or gnome terminal F1 - F4
    bindkey -s "^[OP"   "^["
    bindkey    "^[OQ"   undo
    bindkey    "^[OR"   undefined-key  
    bindkey    "^[OS"   kill-line
fi
# Function keys F1 - F12
if [[ "$TERM" == "linux" ]] then
    # On console the first five function keys
    bindkey    "^[[[A"  undefined-key
    bindkey    "^[[[B"  undefined-key
    bindkey    "^[[[C"  undefined-key
    bindkey    "^[[[D"  undefined-key
    bindkey    "^[[[E"  undefined-key
else
    # The first five standard function keys
    bindkey    "^[[11~" undefined-key
    bindkey    "^[[12~" undefined-key
    bindkey    "^[[13~" undefined-key
    bindkey    "^[[14~" undefined-key
    bindkey    "^[[15~" undefined-key
fi
bindkey    "^[[17~"             undefined-key
bindkey    "^[[18~"             undefined-key
bindkey    "^[[19~"             undefined-key
bindkey    "^[[20~"             undefined-key
bindkey    "^[[21~"             undefined-key
# Note: F11, F12 are identical with Shift_F1 and Shift_F2
bindkey    "^[[23~"             undefined-key
bindkey    "^[[24~"             undefined-key

# Shift Function keys F1  - F12
#      identical with F11 - F22
#
# bindkey   "^[[23~"    undefined-key
# bindkey   "^[[24~"    undefined-key
bindkey    "^[[25~"             undefined-key
bindkey    "^[[26~"             undefined-key
# DEC keyboard: F15=^[[28~ is Help
bindkey    "^[[28~"             undefined-key
# DEC keyboard: F16=^[[29~ is Menu
bindkey    "^[[29~"             undefined-key
bindkey    "^[[31~"             undefined-key
bindkey    "^[[32~"             undefined-key
bindkey    "^[[33~"             undefined-key
bindkey    "^[[34~"             undefined-key
if [[ "$TERM" == "xterm" ]] then
    # Not common
    bindkey    "^[[35~" undefined-key
    bindkey    "^[[36~" undefined-key
fi

if [[ "$TERM" == "xterm" ]] then
    # Application keypad and cursor of xterm
    # with NumLock ON
    #
    # Operators
    bindkey -s "^[Oo"   "/"
    bindkey -s "^[Oj"   "*"
    bindkey -s "^[Om"   "-"
    bindkey -s "^[Ok"   "+"
    bindkey -s "^[Ol"   ","
    bindkey -s "^[OM"   "\n"
    bindkey -s "^[On"   "."
    # Numbers
    bindkey -s "^[Op"   "0"
    bindkey -s "^[Oq"   "1"
    bindkey -s "^[Or"   "2"
    bindkey -s "^[Os"   "3"
    bindkey -s "^[Ot"   "4"
    bindkey -s "^[Ou"   "5"
    bindkey -s "^[Ov"   "6"
    bindkey -s "^[Ow"   "7"
    bindkey -s "^[Ox"   "8"
    bindkey -s "^[Oy"   "9"
fi

#  EMACS line editing
if [[ "$ZSHEDIT" == "emacs" ]] then 
    # ... xterm application cursor
    if [[ "$TERM" == "xterm" ]] then
        bindkey    "^[^[OD"     backward-word
        bindkey    "^[^[OC"     forward-word
        bindkey    "^[^[OA"     up-history
        bindkey    "^[^[OB"     down-history
        bindkey    "^^[OD"      backward-char
        bindkey    "^^[OC"      forward-char
        bindkey    "^^[OA"      up-history
        bindkey    "^^[OB"      down-history
    fi
    # Standard cursor
    bindkey    "^[^[[D" backward-word
    bindkey    "^[^[[C" forward-word
    bindkey    "^[^[[A" up-history
    bindkey    "^[^[[B" down-history
    bindkey    "^^[[D"  backward-char
    bindkey    "^^[[C"  forward-char
    bindkey    "^^[[A"  up-history
    bindkey    "^^[[B"  down-history
fi
++++++ zshrc.rhs ++++++
#
# /etc/zshrc is sourced in interactive shells.  It
# should contain commands to set up aliases, functions,
# options, key bindings, etc.
#

## shell functions
#setenv() { export $1=$2 }  # csh compatibility

# Set prompts
PROMPT='[%n@%m]%~%# '    # default prompt
#RPROMPT=' %~'     # prompt for right side of screen

# bindkey -v             # vi key bindings
# bindkey -e             # emacs key bindings
bindkey ' ' magic-space  # also do history expansion on space

# from bashrc
if [ "x$SHLVL" != "x1" ]; then # We're not a login shell
    for i in /etc/profile.d/*.sh; do
        if [ -r "$i" ]; then
            . $i
        fi
    done
    unset i
fi
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to