My bash prompt currently starts with the following variables :
\#/\!
which means
\# The command number of this command.
\! The history number of this command.
So \#
is specific to each terminal but the \!
is relative the global history file.
In zsh, %!
appears to be equivalent to bash \#
.
How do you translate bash \!
in zsh ?