aboutsummaryrefslogtreecommitdiff
path: root/bash/bashrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-10-13 17:44:44 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-10-13 17:44:44 +1300
commite2a4d9c11d112d21fe7a433cc42a08995ddc6a91 (patch)
treed40494c86ed7f02e11cbaa0c324913e7ac6bcca1 /bash/bashrc
parentRemove some overzealous command checks (diff)
downloaddotfiles-e2a4d9c11d112d21fe7a433cc42a08995ddc6a91.tar.gz
dotfiles-e2a4d9c11d112d21fe7a433cc42a08995ddc6a91.zip
Remembered that VERSINFO[2] is broken on 2.05a
Thinks it's octal :(
Diffstat (limited to 'bash/bashrc')
-rw-r--r--bash/bashrc10
1 files changed, 2 insertions, 8 deletions
diff --git a/bash/bashrc b/bash/bashrc
index baba0090..4b37f7cb 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -8,14 +8,8 @@ if [[ $- != *i* ]] ; then
return
fi
-# If Bash >= 4.3, keep all history in file forever
-if ((BASH_VERSINFO[0] >= 4 && BASH_VERSINFO[1] >= 3)) ; then
- HISTFILESIZE=-1
-
-# Otherwise, just keep a lot (a million lines)
-else
- HISTFILESIZE=$((2 ** 20))
-fi
+# Keep around a million lines of history in file
+HISTFILESIZE=$((2 ** 20))
# Keep around a thousand lines of history in memory
HISTSIZE=$((2 ** 10))