{"id":16590503,"url":"https://github.com/federicotdn/autoscript","last_synced_at":"2025-08-18T20:34:59.678Z","repository":{"id":79465431,"uuid":"129819553","full_name":"federicotdn/autoscript","owner":"federicotdn","description":"File management for script(1)","archived":false,"fork":false,"pushed_at":"2018-04-23T12:42:34.000Z","size":46,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-31T03:28:58.933Z","etag":null,"topics":["autoscript","bash","command","record","replay","script","terminal","typescript"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/federicotdn.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-04-16T23:45:32.000Z","updated_at":"2021-09-08T01:18:55.000Z","dependencies_parsed_at":"2023-07-30T18:16:19.022Z","dependency_job_id":null,"html_url":"https://github.com/federicotdn/autoscript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/federicotdn/autoscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fautoscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fautoscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fautoscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fautoscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/federicotdn","download_url":"https://codeload.github.com/federicotdn/autoscript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/federicotdn%2Fautoscript/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265625568,"owners_count":23800624,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autoscript","bash","command","record","replay","script","terminal","typescript"],"created_at":"2024-10-11T23:13:17.866Z","updated_at":"2025-07-17T16:03:22.432Z","avatar_url":"https://github.com/federicotdn.png","language":"Shell","readme":"# autoscript\nFile management for [`script(1)`](http://man7.org/linux/man-pages/man1/script.1.html).\n\n**`script`** makes a typescript (recording) of everything displayed on your terminal.\n\n**`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.\n\n## Requirements\n\n- On **GNU/Linux**, `autoscript` requires Bash, and the `script` and `scriptreplay` commands.\n- On **macOS**, `autoscript` requires Bash and only the `script` command.\n\n## Installation\n1. Check out `autoscript` into a directory. In the following example, `~/.autoscript` is used:\n```bash\n$ git clone https://github.com/federicotdn/autoscript.git ~/.autoscript\n```\n\n2. Add the `autoscript` executable to your `$PATH`, by adding a new line to your Bash configuration file:\n```bash\n$ echo 'export PATH=\"$HOME/.autoscript/bin:$PATH\"' \u003e\u003e ~/.bashrc # on GNU/Linux\n\n$ echo 'export PATH=\"$HOME/.autoscript/bin:$PATH\"' \u003e\u003e ~/.bash_profile # on macOS\n```\n\n3. Load your Bash configuration file:\n```bash\n$ source ~/.bashrc # on GNU/Linux\n\n$ source ~/.bash_profile # on macOS\n```\n\n## Usage\nOnce `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:\n\n```bash\n$ autoscript record -m \"github tutorial\"\nThis session is being recorded by autoscript.\nScript file: /home/me/.config/autoscript/3.typescript\nUse 'exit' to stop recording.\n\n$ echo \"All output to the terminal will be recorded\"\nAll output to the terminal will be recorded\n\n$ exit # Exit the current session\n```\n\nAfter a session has been recorded, it'll show up in the sessions list:\n```bash\n$ autoscript list\n ID    DATE                 MESSAGE\n 1     2018-04-13 14:58     -\n 2     2018-04-14 20:01     -\n 3     2018-04-18 11:04     github tutorial\n```\n\nTo replay a recorded session, use the `replay` command, specifying the session ID:\n```bash\n$ autoscript replay -i 3\nScript started on 2018-04-18 11:04:53\n\n$ echo \"All output to the terminal will be recorded\"\nAll output to the terminal will be recorded\n\n$ exit\n\nScript done on 2018-04-18 11:05:51\n```\n\nTo resume a stopped session, use the `resume` command:\n```bash\n$ autoscript resume -i 3\n$ # Continue working inside session 3...\n```\n\nThe `context` command will return an ID only when inside an `autoscript` session:\n```bash\n$ autoscript context\n3\n```\n\nFinally, the `delete` command can be used to delete a stopped session:\n```bash\n$ autoscript delete -i 1 # Delete session with ID 1\n$ autoscript list\n ID       DATE                 MESSAGE\n 2        2018-04-14 20:01     -\n 3 (r)    2018-04-18 11:04     github tutorial\n```\n\nNote that the `list` command will show a `(r)` next to the IDs of sessions that are currently being recorded.\n\n## Tips\nUsing [junegunn's `fzf`](https://github.com/junegunn/fzf), one can easily search for text in a previousy recorded session:\n```bash\n$ autoscript replay -i 3 -a | fzf --reverse\n```\n\nThe `-a` flag removes ANSI escape sequences from the recorded script.\n\n## Uninstalling\nTo 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`.\n\n## Todo\n - Add more scripts metadata\n - Script compression\n - Bash tab completion\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericotdn%2Fautoscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffedericotdn%2Fautoscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffedericotdn%2Fautoscript/lists"}