`terminal-recorder` tool might be helpful in case you need to document a process on your terminal (like using git commands, devops procedures, etc..). It records your terminal keystrokes and export them to an interactive html documentation (where you can pause and also copy the plain command text), so you can share it easily with your friends.
https://www.npmjs.com/package/terminal-recorderCloses#486