From 1becb290b9737c9efd8ef6f9bcebe3942572b609 Mon Sep 17 00:00:00 2001 From: dakkar Date: Tue, 17 May 2016 17:15:19 +0100 Subject: try to protect against emacs/tramp history setting --- .bashrc | 1 + 1 file changed, 1 insertion(+) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index 3318cd5..03de0f0 100644 --- a/.bashrc +++ b/.bashrc @@ -4,6 +4,7 @@ # including some apparently interactive shells such as scp and rcp # that can't tolerate any output. So make sure this doesn't display # anything or bad things will happen ! +if [[ $HISTFILE = /dev/null ]]; then unset HISTFILE; fi # Test for an interactive shell. There is no need to set anything -- cgit v1.2.3