Closed gabebw closed 7 years ago
Maybe it's better to just do the equivalent of cat ${HISTFILE:-~/.bash_history}
since running an interactive shell just for history
isn't actually worth it.
The history file looks like this:
b
ls
history
g | less
Fixed by #13.
It could switch depending on
$SHELL
value (and be forced to use one or the other with--shell zsh
or--shell bash
).Here's what
history -a
produces:Note that this does not understand newlines like
fc
does, soecho '\nls\n'
gets interpreted as lines 72, 73, and 74. 😬