I know you can avoid keeping the command in history if you use setopt HIST_IGNORE_SPACE
. But what about a block of commands?
Imagine I write something like:
nohistorystart
...cmds...
nohistoryend
Or something that starts a prompt.
From this answer, you can push/pop a new history, not associated with a save file. (Note the capitals.)
fc -p
...cmds...
fc -P
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments