zsh/zshrc.rhs

51 lines
1.1 KiB
Plaintext
Raw Normal View History

auto-import changelog data from zsh-3.0.8-3.src.rpm Thu Jul 13 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Sun Jul 02 2000 Trond Eivind Glomsrød <teg@redhat.com> - rebuild Tue Jun 06 2000 Trond Eivind Glomsrød <teg@redhat.com> - 3.0.8 - use %configure and %makeinstall - updated URL - disable old patches - add better patch for texi source - use %{_mandir} and %{_infodir} - use %{_tmppath} Tue May 02 2000 Trond Eivind Glomsrød <teg@redhat.com> - patched to recognize export in .zshrc (bug #11169) Tue Mar 07 2000 Jeff Johnson <jbj@redhat.com> - rebuild for sparc baud rates > 38400. Fri Mar 03 2000 Cristian Gafton <gafton@redhat.com> - fix postun script so that we don't remove ourselves on every update doh... - add a trigger to fix old versions of the package Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com> - rebuild to fix dependencies Thu Jan 13 2000 Jeff Johnson <jbj@redhat.com> - update to 3.0.7. - source /etc/profile so that USER gets set correctly (#5655). Fri Sep 24 1999 Michael K. Johnson <johnsonm@redhat.com> - source /etc/profile.d/*.sh in zprofile Tue Sep 07 1999 Cristian Gafton <gafton@redhat.com> - fix zshenv and zprofile scripts - foxed versions from HJLu. Thu Jul 29 1999 Bill Nottingham <notting@redhat.com> - clean up init files some. (#4055) Tue May 18 1999 Jeff Johnson <jbj@redhat.com> - Make sure that env variable TmpFile is evaluated. (#2898) Sun May 09 1999 Jeff Johnson <jbj@redhat.com> - fix select timeval initialization (#2688). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 10) - fix the texi source - patch to detect & link against nsl Wed Mar 10 1999 Cristian Gafton <gafton@redhat.com> - use mktemp to handle temporary files. Thu Feb 11 1999 Michael Maher <mike@redhat.com> - fixed bug #365 Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com> - compile for 5.2 Sat Jun 06 1998 Prospector System <bugs@redhat.com> - translations modified for de Sat Jun 06 1998 Jeff Johnson <jbj@redhat.com> - Eliminate incorrect info page removal. Fri May 08 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat Apr 11 1998 Cristian Gafton <gafton@redhat.com> - manhattan build - moved profile.d handling from zshrc to zprofile Tue Oct 21 1997 Cristian Gafton <gafton@redhat.com> - Upgraded to 3.0.5 - Install-info handling Thu Jul 31 1997 Erik Troan <ewt@redhat.com> - built against glibc Thu Apr 10 1997 Michael Fulbright <msf@redhat.com> - Upgraded to 3.0.2 - Added 'reasonable' default startup files in /etc
2004-09-09 15:18:48 +00:00
#
# /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
auto-import changelog data from zsh-3.0.8-3.src.rpm Thu Jul 13 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Sun Jul 02 2000 Trond Eivind Glomsrød <teg@redhat.com> - rebuild Tue Jun 06 2000 Trond Eivind Glomsrød <teg@redhat.com> - 3.0.8 - use %configure and %makeinstall - updated URL - disable old patches - add better patch for texi source - use %{_mandir} and %{_infodir} - use %{_tmppath} Tue May 02 2000 Trond Eivind Glomsrød <teg@redhat.com> - patched to recognize export in .zshrc (bug #11169) Tue Mar 07 2000 Jeff Johnson <jbj@redhat.com> - rebuild for sparc baud rates > 38400. Fri Mar 03 2000 Cristian Gafton <gafton@redhat.com> - fix postun script so that we don't remove ourselves on every update doh... - add a trigger to fix old versions of the package Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com> - rebuild to fix dependencies Thu Jan 13 2000 Jeff Johnson <jbj@redhat.com> - update to 3.0.7. - source /etc/profile so that USER gets set correctly (#5655). Fri Sep 24 1999 Michael K. Johnson <johnsonm@redhat.com> - source /etc/profile.d/*.sh in zprofile Tue Sep 07 1999 Cristian Gafton <gafton@redhat.com> - fix zshenv and zprofile scripts - foxed versions from HJLu. Thu Jul 29 1999 Bill Nottingham <notting@redhat.com> - clean up init files some. (#4055) Tue May 18 1999 Jeff Johnson <jbj@redhat.com> - Make sure that env variable TmpFile is evaluated. (#2898) Sun May 09 1999 Jeff Johnson <jbj@redhat.com> - fix select timeval initialization (#2688). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 10) - fix the texi source - patch to detect & link against nsl Wed Mar 10 1999 Cristian Gafton <gafton@redhat.com> - use mktemp to handle temporary files. Thu Feb 11 1999 Michael Maher <mike@redhat.com> - fixed bug #365 Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com> - compile for 5.2 Sat Jun 06 1998 Prospector System <bugs@redhat.com> - translations modified for de Sat Jun 06 1998 Jeff Johnson <jbj@redhat.com> - Eliminate incorrect info page removal. Fri May 08 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat Apr 11 1998 Cristian Gafton <gafton@redhat.com> - manhattan build - moved profile.d handling from zshrc to zprofile Tue Oct 21 1997 Cristian Gafton <gafton@redhat.com> - Upgraded to 3.0.5 - Install-info handling Thu Jul 31 1997 Erik Troan <ewt@redhat.com> - built against glibc Thu Apr 10 1997 Michael Fulbright <msf@redhat.com> - Upgraded to 3.0.2 - Added 'reasonable' default startup files in /etc
2004-09-09 15:18:48 +00:00
# Set prompts
PROMPT='[%n@%m]%~%# ' # default prompt
auto-import changelog data from zsh-3.0.8-3.src.rpm Thu Jul 13 2000 Prospector <bugzilla@redhat.com> - automatic rebuild Sun Jul 02 2000 Trond Eivind Glomsrød <teg@redhat.com> - rebuild Tue Jun 06 2000 Trond Eivind Glomsrød <teg@redhat.com> - 3.0.8 - use %configure and %makeinstall - updated URL - disable old patches - add better patch for texi source - use %{_mandir} and %{_infodir} - use %{_tmppath} Tue May 02 2000 Trond Eivind Glomsrød <teg@redhat.com> - patched to recognize export in .zshrc (bug #11169) Tue Mar 07 2000 Jeff Johnson <jbj@redhat.com> - rebuild for sparc baud rates > 38400. Fri Mar 03 2000 Cristian Gafton <gafton@redhat.com> - fix postun script so that we don't remove ourselves on every update doh... - add a trigger to fix old versions of the package Mon Jan 31 2000 Cristian Gafton <gafton@redhat.com> - rebuild to fix dependencies Thu Jan 13 2000 Jeff Johnson <jbj@redhat.com> - update to 3.0.7. - source /etc/profile so that USER gets set correctly (#5655). Fri Sep 24 1999 Michael K. Johnson <johnsonm@redhat.com> - source /etc/profile.d/*.sh in zprofile Tue Sep 07 1999 Cristian Gafton <gafton@redhat.com> - fix zshenv and zprofile scripts - foxed versions from HJLu. Thu Jul 29 1999 Bill Nottingham <notting@redhat.com> - clean up init files some. (#4055) Tue May 18 1999 Jeff Johnson <jbj@redhat.com> - Make sure that env variable TmpFile is evaluated. (#2898) Sun May 09 1999 Jeff Johnson <jbj@redhat.com> - fix select timeval initialization (#2688). Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com> - auto rebuild in the new build environment (release 10) - fix the texi source - patch to detect & link against nsl Wed Mar 10 1999 Cristian Gafton <gafton@redhat.com> - use mktemp to handle temporary files. Thu Feb 11 1999 Michael Maher <mike@redhat.com> - fixed bug #365 Thu Dec 17 1998 Cristian Gafton <gafton@redhat.com> - build for glibc 2.1 Thu Sep 10 1998 Jeff Johnson <jbj@redhat.com> - compile for 5.2 Sat Jun 06 1998 Prospector System <bugs@redhat.com> - translations modified for de Sat Jun 06 1998 Jeff Johnson <jbj@redhat.com> - Eliminate incorrect info page removal. Fri May 08 1998 Prospector System <bugs@redhat.com> - translations modified for de, fr, tr Sat Apr 11 1998 Cristian Gafton <gafton@redhat.com> - manhattan build - moved profile.d handling from zshrc to zprofile Tue Oct 21 1997 Cristian Gafton <gafton@redhat.com> - Upgraded to 3.0.5 - Install-info handling Thu Jul 31 1997 Erik Troan <ewt@redhat.com> - built against glibc Thu Apr 10 1997 Michael Fulbright <msf@redhat.com> - Upgraded to 3.0.2 - Added 'reasonable' default startup files in /etc
2004-09-09 15:18:48 +00:00
#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