]> git.pld-linux.org Git - packages/zsh.git/commitdiff
- added gotar's fixes for xterm's home, end, del
authorwolf <wolf@pld-linux.org>
Sun, 17 Nov 2002 15:37:46 +0000 (15:37 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    zsh.spec -> 1.58

zsh.spec

index c176fea57a50bd63d4583052fd8c9aa2e348e034..4c574f51d7afa1014ca8bcf95a671c3c3e94dc15 100644 (file)
--- a/zsh.spec
+++ b/zsh.spec
@@ -1,4 +1,4 @@
-# $Revision: 1.57 $ $Date: 2002-11-17 01:29:47 $
+# $Revision: 1.58 $ $Date: 2002-11-17 15:37:46 $
 #
 # Conditional build:
 # _without_static      - without static version
@@ -166,8 +166,20 @@ touch $RPM_BUILD_ROOT%{_sysconfdir}/{zlogout,zlogin,zshenv}
 echo "setopt no_function_argzero" > $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
 echo ". %{_sysconfdir}/profile" >> $RPM_BUILD_ROOT%{_sysconfdir}/zprofile
 
-echo -e "PS1='[%%n@%%m %%~]%%(!.#.%%\\$) '\nbindkey -e >/dev/null 2>&1\nalias which=whence" > \
-                                               $RPM_BUILD_ROOT%{_sysconfdir}/zshrc
+cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/zshrc
+PS1='[%%n@%%m %%~]%%(!.#.%%\\$) '
+bindkey -e >/dev/null 2>&1
+alias which=whence
+
+# xterm
+bindkey \`tput khome\` beginning-of-line >/dev/null 2>&1
+bindkey \`tput kend\` end-of-line >/dev/null 2>&1
+bindkey \`tput kdch1\` delete-char >/dev/null 2>&1
+bindkey \`tput kpp\` up-history >/dev/null 2>&1
+bindkey \`tput knp\` end-of-history >/dev/null 2>&1
+bindkey \`tput kcuu1\` history-beginning-search-backward >/dev/null 2>&1
+bindkey \`tput kcud1\` history-beginning-search-forward >/dev/null 2>&1
+EOF
 
 rm -f Etc/Makefile*
 find Functions Util StartupFiles -name .distfiles -o -name .cvsignore | xargs rm -f
This page took 0.040404 seconds and 4 git commands to generate.