- Install
gsed,gawkandcore-utilsusingbrew(Because the tools provided by Apple are not GNU).
brew install gnu-sed gawk coreutils
- Clone the
https://github.com/mboisson/recording-scriptrepository, and add it to your PATH.
git clone https://github.com/mboisson/recording-script
- Clone the
https://github.com/mboisson/recording-scriptrepository, and add it to your PATH.
git clone https://github.com/mboisson/recording-script
recordsession.sh <-r|--repo url> [-f|--filename <name>] [-d|--delay <delay>] [-s|--short_path] [-h|--help]
For example, the .html at http://mboisson.github.io/testing/bash_lesson.html#end was recorded using the command
recordsession.sh --repo git@github.com:mboisson/testing.git --filename bash_lesson --delay 10
- The script pushes from the
gh-pagesbranch, and creates one if it does not exist. It has been used with Software Carpentry event pages. - The delay is in seconds, and there is a default delay of 60 seconds between each sync.
- This script assumes that your github is configured to use SSH keys.
- The script uses a modified version of
ansi2html.sh, which can be obtained fromhttp://github.com/pixelb/scripts/commits/master/scripts/ansi2html.sh
Issue Ctrl-D or exit at the prompt.