Execute a block of commands without keeping it in shell history (zsh) -
i know can avoid keeping command in history if use setopt hist_ignore_space
. block of commands?
imagine write like:
nohistorystart ...cmds... nohistoryend
or starts prompt.
from this answer, can push/pop new history, not associated save file. (note capitals.)
fc -p ...cmds... fc -p
Comments
Post a Comment