lmi-commits
[Top][All Lists]
Advanced

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

[lmi-commits] [lmi] master f2efed6 01/24: Guard against accidental Ctrl-


From: Greg Chicares
Subject: [lmi-commits] [lmi] master f2efed6 01/24: Guard against accidental Ctrl-D
Date: Wed, 30 Dec 2020 18:46:55 -0500 (EST)

branch: master
commit f2efed6a28b42a9fc9fbe99659ffe7c78b0b9e0c
Author: Gregory W. Chicares <gchicares@sbcglobal.net>
Commit: Gregory W. Chicares <gchicares@sbcglobal.net>

    Guard against accidental Ctrl-D
    
    It closes the termina
---
 gwc/.zshrc | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/gwc/.zshrc b/gwc/.zshrc
index ba919aa..9a27c2a 100644
--- a/gwc/.zshrc
+++ b/gwc/.zshrc
@@ -109,6 +109,9 @@ HISTFILE=~/.history
 setopt HIST_IGNORE_DUPS
 setopt HIST_IGNORE_SPACE
 
+# Don't kill session if Ctrl-D hit by accident.
+setopt IGNORE_EOF
+
 # Get rid of silly redhat defaults like their 1400-char $LS_COLORS.
 unset HISTCONTROL
 unset KDEDIRS



reply via email to

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