lmi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lmi] [lmi-commits] master 4eca5fa 1/3: Suppress a redhat nuisance


From: Vadim Zeitlin
Subject: Re: [lmi] [lmi-commits] master 4eca5fa 1/3: Suppress a redhat nuisance
Date: Wed, 5 Feb 2020 16:24:56 +0100

On Wed,  5 Feb 2020 10:16:08 -0500 (EST) Greg Chicares <address@hidden> wrote:

GC> branch: master
GC> commit 4eca5fa1336e12ae26245abd0aee50231bff5e35
GC> Author: Gregory W. Chicares <address@hidden>
GC> Commit: Gregory W. Chicares <address@hidden>
GC> 
GC>     Suppress a redhat nuisance
GC> ---
GC>  install_centos.sh | 4 ++++
GC>  install_redhat.sh | 4 ++++
GC>  2 files changed, 8 insertions(+)
GC> 
GC> diff --git a/install_centos.sh b/install_centos.sh
GC> index f5e35b4..ab74f32 100755
GC> --- a/install_centos.sh
GC> +++ b/install_centos.sh
GC> @@ -89,6 +89,10 @@ yum --assumeyes install ncurses-term zsh
GC>  chsh -s /bin/zsh root
GC>  chsh -s /bin/zsh "${NORMAL_USER}"
GC>  
GC> +# Suppress a nuisance: rh-based distributions provide a default
GC> +# zsh logout file that clears the screen.
GC> +sed -e'/^[^#]/s/^/# SUPPRESSED # /' -i /srv/chroot/centos7lmi/etc/zlogout

 Just in case it can be useful: you could also add the following line to
your ~/.zlogout file (creating it if necessary):

        unsetopt GLOBAL_RCS

 This would inhibit /etc/zlogout (or /etc/zsh/zlogout or whatever) from
being read.

 Of course, you could also unset GLOBAL_RCS earlier if you don't want to
use /etc/z{profile,shrc,login} neither, but doing it in ~/.zlogout is the
least disruptive way to skip /etc/zlogout.

 Regards,
VZ

Attachment: pgpADr4VjXU6T.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]