From 7ef931f898aebfe1f0219bed2bf5128d8b25f74b Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 13 Nov 2020 16:17:06 +1300 Subject: Use inline integers rather than bit shifting Syntax highlighting doesn't deal with it well --- bash/bashrc | 2 +- bin/mktd.sh | 2 +- sh/shrc | 2 +- zsh/zshrc | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 -- cgit v1.2.3 From 5ddf3f88ed60b934487eb34723984e280e86cc22 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 13 Nov 2020 16:17:38 +1300 Subject: Bump VERSION --- VERSION | 4 ++-- 1 file changed, 2 insertions(+), 2 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 -- cgit v1.2.3