I would like to disable Zsh history (arrow up) and zle history search (namely esc+p) completely. How can I achieve this?
My current .zshrc
:
unsetopt hist_append
unsetopt hist_expand
HISTFILE=
HISTSIZE=SAVEHIST=0
Currently I have history buffer of one, but I'd like to have history of zero.
21-10-2016 Update:
I've added
bindkey -r "^[p"
bindkey -r "^Xr"
bindkey -r "^Xs"
bindkey -r "^[[A"
bindkey -r "^[[B"
bindkey -r "^[n"
to get rid of history features that I use (esc+p is deeply hardwired to my backbone - so difficult to unlearn).
% HISTSIZE=SAVEHIST=4
% echo $HISTSIZE $SAVEHIST
4 4
% HISTSIZE=0
% echo $HISTSIZE $SAVEHIST
1 4
% HISTSIZE=SAVEHIST=0
% echo $HISTSIZE $SAVEHIST
1 0
– Brandenburgtypeset -i
). – Serpentine% HISTSIZE=0
% typeset -i|grep HISTSIZE
HISTSIZE=1
– BrandenburgA=B=5
puts the valueB=5
into the variableA
. But if you mark the variable as specifically "integers only", thanA=B=5
will put the value5
into both variablesA
andB
. This trick doesn't work for all variables, only for variables that are specifically "integer only". It's not an answer to your original question. It's continuing the discussion on chained variable assignment. – Brogan