https://github.com/bast/history-window
Show command history "picture-in-picture" when teaching command line.
https://github.com/bast/history-window
bash history terminal
Last synced: about 1 year ago
JSON representation
Show command history "picture-in-picture" when teaching command line.
- Host: GitHub
- URL: https://github.com/bast/history-window
- Owner: bast
- License: mit
- Created: 2024-04-06T15:04:43.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-07T07:20:26.000Z (about 2 years ago)
- Last Synced: 2025-03-30T09:11:45.217Z (about 1 year ago)
- Topics: bash, history, terminal
- Language: Shell
- Homepage:
- Size: 386 KB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: history-window.sh
- License: LICENSE
Awesome Lists containing this project
README
# history-window
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
## Demo

## Installation
```bash
wget https://raw.githubusercontent.com/bast/history-window/main/history-window.sh
source history-window.sh
```
The 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.sh` which we downloaded
- `~/history.txt` which is the history file written to by the script
## Status and roadmap
- There are rough edges. Improvements are welcome.
- Resizing kind of works, but requires a `clear` to redraw the window.
- Currently only Bash. Let's add support for [fish](https://fishshell.com/)?
## Similar projects
- https://github.com/rkdarst/prompt-log