update version to 5.7.1

This commit is contained in:
openeuler-basic 2020-01-08 14:53:25 +08:00
parent 773fd376c2
commit c5e70491bd
14 changed files with 60 additions and 136 deletions

View File

@ -4,31 +4,6 @@
# functions, options, key bindings, etc.
#
# Setup new style completion system.
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

4
zlogin Normal file
View File

@ -0,0 +1,4 @@
#
# '.zlogin' is sourced in login shells. It should contain
# commands that should be executed only in login shells.
#

View File

@ -1,8 +0,0 @@
#
# /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).
#

5
zlogout Normal file
View File

@ -0,0 +1,5 @@
#
# '.zlogout' is sourced when login shells exit
#
clear

View File

@ -1,7 +0,0 @@
#
#
# /etc/zlogout and ~/.zlogout are run when an interactive session ends
#
#
clear

8
zprofile Normal file
View File

@ -0,0 +1,8 @@
#
# '.zlogout' is similar to `.zlogin', except that it is sourced before `.zshrc'
#
PATH="$PATH:$HOME/bin"
export PATH
[ -f /etc/profile ] && . /etc/profile

View File

@ -1,22 +0,0 @@
#
# /etc/zprofile and ~/.zprofile are run for login shells
#
PATH="$PATH:$HOME/bin"
export PATH
_src_etc_profile()
{
# Make /etc/profile happier, and have possible ~/.zshenv options like
# NOMATCH ignored.
#
emulate -L ksh
# source profile
if [ -f /etc/profile ]; then
source /etc/profile
fi
}
_src_etc_profile
unset -f _src_etc_profile

Binary file not shown.

BIN
zsh-5.7.1.tar.xz Normal file

Binary file not shown.

View File

@ -1,19 +1,20 @@
%define _bindir /bin
Name: zsh
Version: 5.6.2
Release: 3
Version: 5.7.1
Release: 1
Summary: A shell designed for interactive use
License: MIT
URL: http://zsh.sourceforge.net
Source0: https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
# Source1 to Source6 get from fedora
Source1: zlogin.rhs
Source2: zlogout.rhs
Source3: zprofile.rhs
Source4: zshrc.rhs
Source5: zshenv.rhs
# There are five startup files that zsh will read commands from
# http://zsh.sourceforge.net/Intro/intro_3.html
Source1: zlogin
Source2: zlogout
Source3: zprofile
Source4: zshrc
Source5: zshenv
Source6: dotzshrc
BuildRequires: autoconf coreutils gawk gdbm-devel libcap-devel
@ -72,7 +73,7 @@ rm -f $RPM_BUILD_ROOT%{_infodir}/dir
install -d ${RPM_BUILD_ROOT}%{_sysconfdir}
for i in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5}; do
install -m 644 $i $RPM_BUILD_ROOT%{_sysconfdir}/"$(basename $i .rhs)"
install -m 644 $i $RPM_BUILD_ROOT%{_sysconfdir}/"${i##*/}"
done
install -d $RPM_BUILD_ROOT%{_sysconfdir}/skel
@ -129,6 +130,12 @@ fi
%{_datadir}/zsh
%changelog
* Wed Jan 8 2020 openEuler Buildteam <buildteam@openeuler.org> - 5.7.1-1
- Type:enhancement
- ID:NA
- SUG:NA
- DESC:update version to 5.7.1
* Wed Dec 18 2019 jiangchuangang <jiangchuangang@huawei.com> - 5.6.2-3
- Type:enhancement
- ID:NA

7
zshenv Normal file
View File

@ -0,0 +1,7 @@
#
# `.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.
#

View File

@ -1,14 +0,0 @@
# /etc/zsh/zshenv: system-wide .zshenv file for zsh(1).
#
# This file is sourced on all invocations of the shell.
# If the -f flag is present or if the NO_RCS option is
# set within this file, all other initialization files
# are skipped.
#
# This file should contain commands to set the command
# search path, plus other important environment variables.
# This file should not contain commands that produce
# output or assume the shell is attached to a tty.
#
# Global Order: zshenv, zprofile, zshrc, zlogin

19
zshrc Normal file
View File

@ -0,0 +1,19 @@
#
# `.zshrc' is sourced in interactive shells. It should contain
# commands to set up aliases, functions, options, key bindings, etc.
#
# Some nice key bindings
#bindkey '^X^Z' universal-argument ' ' magic-space
#bindkey '^X^A' vi-find-prev-char-skip
#bindkey '^Xa' _expand_alias
#bindkey '^Z' accept-and-hold
#bindkey -s '\M-/' \\\\
#bindkey -s '\M-=' \|
# bindkey -v # vi key bindings
bindkey -e # emacs key bindings
bindkey ' ' magic-space # also do history expansion on space
bindkey '^I' complete-word # complete on tab, leave expansion to _expand

View File

@ -1,50 +0,0 @@
#
# /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
# Provide pathmunge for /etc/profile.d scripts
pathmunge()
{
if ! echo $PATH | /bin/grep -qE "(^|:)$1($|:)" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}
_src_etc_profile_d()
{
# Make the *.sh things happier, and have possible ~/.zshenv options like
# NOMATCH ignored.
emulate -L ksh
# from bashrc, with zsh fixes
if [[ ! -o login ]]; 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
}
_src_etc_profile_d
unset -f pathmunge _src_etc_profile_d