summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2016-05-17 17:15:19 +0100
committerdakkar <dakkar@thenautilus.net>2016-05-17 17:15:19 +0100
commit1becb290b9737c9efd8ef6f9bcebe3942572b609 (patch)
tree0a5f4bb28036686e6bc891744a339ad47f2421a8
parentkeep including the locale's compose table (diff)
downloaddotfiles-1becb290b9737c9efd8ef6f9bcebe3942572b609.tar.gz
dotfiles-1becb290b9737c9efd8ef6f9bcebe3942572b609.tar.bz2
dotfiles-1becb290b9737c9efd8ef6f9bcebe3942572b609.zip
try to protect against emacs/tramp history setting
-rw-r--r--.bashrc1
1 files changed, 1 insertions, 0 deletions
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