dgageot/demoit

Continuity of shell history

Opened this issue · 1 comments

  • In step N, run shell command X
  • Then the "Up" arrow key can be used to re-run the same command X
  • Move forward to step N+1, which also features a web-term
  • The "Up" arrow key doesn't remember X
    • it would be nice if it did
tomor commented

There are few possibilities about how to achieve such behavior:

  1. Don't create any bash_history temp file and write the history into the .demoit/.bash_history, code here : https://github.com/tomor/demoit/commit/a54874ec569add556e9622cff2624265ac418d58
  2. Create only one temp history file during the demo - history shared between slides, code here: https://github.com/tomor/demoit/commit/bc87b1debe860b89c39c1e82e5459fe8fd0c6877
  3. Create only one temp history file during demo per slide - history not shared between slides