Show command history "picture-in-picture" when teaching command line. Requires Bash.
Motivation for this:
- This is nice for people using a tiling window manager
- Only two commands to run, I guess could be collapsed to one
- Only one terminal to deal with
- Less for me to do and prepare before the lesson starts
wget https://raw.githubusercontent.com/bast/history-window/main/history-window.sh
source history-window.shThe nice thing is that it does not install or modify anything permanently. Once you close the terminal, it's gone. Only thing left behind might be:
history-window.shwhich we downloaded~/history.txtwhich is the history file written to by the script
- There are rough edges. Improvements are welcome.
- Resizing kind of works, but requires a
clearto redraw the window. - Currently only Bash. Let's add support for fish?
