diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2020-11-13 16:17:06 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2020-11-13 16:17:06 +1300 |
commit | 7ef931f898aebfe1f0219bed2bf5128d8b25f74b (patch) | |
tree | 2fcb275f74add9383b9a155206a63aa4dec5f1b5 | |
parent | Merge branch 'release/v10.15.0' into develop (diff) | |
download | dotfiles-7ef931f898aebfe1f0219bed2bf5128d8b25f74b.tar.gz dotfiles-7ef931f898aebfe1f0219bed2bf5128d8b25f74b.zip |
Use inline integers rather than bit shifting
Syntax highlighting doesn't deal with it well
-rw-r--r-- | bash/bashrc | 2 | ||||
-rw-r--r-- | bin/mktd.sh | 2 | ||||
-rw-r--r-- | sh/shrc | 2 | ||||
-rw-r--r-- | 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 @@ -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 @@ -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 |