aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2020-11-13 16:17:41 +1300
committerTom Ryder <tom@sanctum.geek.nz>2020-11-13 16:17:41 +1300
commit9c0e7d95be170361cf669664f19efa42d687d9bb (patch)
tree9b54e4aa1bba19924f961ae725aa0fa95c3b9266
parentMerge branch 'release/v10.15.0' (diff)
parentBump VERSION (diff)
downloaddotfiles-9c0e7d95be170361cf669664f19efa42d687d9bb.tar.gz
dotfiles-9c0e7d95be170361cf669664f19efa42d687d9bb.zip
Merge branch 'release/v10.16.0'v10.16.0
* release/v10.16.0: Use inline integers rather than bit shifting
-rw-r--r--VERSION4
-rw-r--r--bash/bashrc2
-rw-r--r--bin/mktd.sh2
-rw-r--r--sh/shrc2
-rw-r--r--zsh/zshrc2
5 files changed, 6 insertions, 6 deletions
diff --git a/VERSION b/VERSION
index aba6e008..ac1da28e 100644
--- a/VERSION
+++ b/VERSION
@@ -1,2 +1,2 @@
-tejr dotfiles v10.15.0
-Thu, 12 Nov 2020 11:15:17 +0000
+tejr dotfiles v10.16.0
+Fri, 13 Nov 2020 03:17:38 +0000
diff --git a/bash/bashrc b/bash/bashrc
index 6e4c31a9..a60a047e 100644
--- a/bash/bashrc
+++ b/bash/bashrc
@@ -29,7 +29,7 @@ fi
unset -f command_not_found_handle
# Keep around 32K lines of history in file
-HISTFILESIZE=$((1 << 15))
+HISTFILESIZE=32768
# Ignore duplicate commands
HISTCONTROL=ignoredups
diff --git a/bin/mktd.sh b/bin/mktd.sh
index 72375873..c2ba2ee2 100644
--- a/bin/mktd.sh
+++ b/bin/mktd.sh
@@ -2,7 +2,7 @@
# Build the intended directory name, with the last element a random integer
# from 1..2^31
-lim=$((2 << 31))
+lim=2147483648
dn=${TMPDIR:-/tmp}/${1:-mktd}.$$.$(rndi 1 "$lim")
# Create the directory and print its name if successful
diff --git a/sh/shrc b/sh/shrc
index 26f69c0c..88601391 100644
--- a/sh/shrc
+++ b/sh/shrc
@@ -5,7 +5,7 @@ command -p mesg n 2>/dev/null
command -p stty -ixon -ctlecho 2>/dev/null
# Keep around 4K lines of history in memory
-HISTSIZE=$((1 << 12))
+HISTSIZE=4096
# If HOSTNAME isn't set by this shell, we'll do it
if [ -z "$HOSTNAME" ] ; then
diff --git a/zsh/zshrc b/zsh/zshrc
index 6d3239eb..30e7173b 100644
--- a/zsh/zshrc
+++ b/zsh/zshrc
@@ -15,7 +15,7 @@ bindkey -e
# History settings
setopt histignorealldups sharehistory
HISTFILE=$HOME/.zsh_history
-SAVEHIST=$((1 << 12))
+SAVEHIST=4096
# Load Zsh-specific startup files
for zsh in "$HOME"/.zshrc.d/*.zsh(N) ; do