File management for script(1).
script makes a typescript (recording) of everything displayed on your terminal.
autoscript manages files created by script, allowing the user to list, delete and resume recordings. autoscript also attaches some data along the created typescripts, like the current date or a user-specified message.
- On GNU/Linux, 
autoscriptrequires Bash, and thescriptandscriptreplaycommands. - On macOS, 
autoscriptrequires Bash and only thescriptcommand. 
- Check out 
autoscriptinto a directory. In the following example,~/.autoscriptis used: 
$ git clone https://github.com/federicotdn/autoscript.git ~/.autoscript- Add the 
autoscriptexecutable to your$PATH, by adding a new line to your Bash configuration file: 
$ echo 'export PATH="$HOME/.autoscript/bin:$PATH"' >> ~/.bashrc # on GNU/Linux
$ echo 'export PATH="$HOME/.autoscript/bin:$PATH"' >> ~/.bash_profile # on macOS- Load your Bash configuration file:
 
$ source ~/.bashrc # on GNU/Linux
$ source ~/.bash_profile # on macOSOnce autoscript is installed, you can start recording a terminal session using the record command. Once a session has started, it can be stopped using the exit shell builtin:
$ autoscript record -m "github tutorial"
This session is being recorded by autoscript.
Script file: /home/me/.config/autoscript/3.typescript
Use 'exit' to stop recording.
$ echo "All output to the terminal will be recorded"
All output to the terminal will be recorded
$ exit # Exit the current sessionAfter a session has been recorded, it'll show up in the sessions list:
$ autoscript list
 ID    DATE                 MESSAGE
 1     2018-04-13 14:58     -
 2     2018-04-14 20:01     -
 3     2018-04-18 11:04     github tutorialTo replay a recorded session, use the replay command, specifying the session ID:
$ autoscript replay -i 3
Script started on 2018-04-18 11:04:53
$ echo "All output to the terminal will be recorded"
All output to the terminal will be recorded
$ exit
Script done on 2018-04-18 11:05:51To resume a stopped session, use the resume command:
$ autoscript resume -i 3
$ # Continue working inside session 3...The context command will return an ID only when inside an autoscript session:
$ autoscript context
3Finally, the delete command can be used to delete a stopped session:
$ autoscript delete -i 1 # Delete session with ID 1
$ autoscript list
 ID       DATE                 MESSAGE
 2        2018-04-14 20:01     -
 3 (r)    2018-04-18 11:04     github tutorialNote that the list command will show a (r) next to the IDs of sessions that are currently being recorded.
Using junegunn's fzf, one can easily search for text in a previousy recorded session:
$ autoscript replay -i 3 -a | fzf --reverseThe -a flag removes ANSI escape sequences from the recorded script.
To uninstall autoscript, delete the application directory (default: ~/.autoscript), and the configuration directory (default: ~/.config/autoscript). Finally, remove the $PATH entry that was added to .bashrc or .bash_profile.
- Add more scripts metadata
 - Script compression
 - Bash tab completion