Hi again,
On a side note, I still find that recording of "nano" or "vim" is rather cumbersome.

I do not have a good solution for it however.

If anyone has an idea, let me know.


Maxime

Le 2015-11-17 15:58, Maxime Boissonneault a écrit :
Hi,
There has been quite a lot of interest for this script.

I have integrated a few pull requests and corrected an incompatibility between the "script" command on Mac OS and Linux (thanks for reporting this bug Tyson).

I have changed the way to invoke the recordsession.sh script to use some command line argument parsing instead of fixed position arguments.

Finally, I have added an option to change the PS1 so that it displays only the inner-most directory rather than the full path (enabled with the option --short_path, or -s) (thanks Leighton Pritchard for this suggestion).


Maxime


Le 2015-11-06 15:58, Maxime Boissonneault a écrit :
Hi,
A collegue of mine used github, with an automatic synchronization, to send a Python notebook to github, so that attendees can catch up if they got stuck somewhere in the training.

I wanted to do the same thing for Bash and git, which do not have the luxury of having a notebook.

I came up with a solution that works rather well, and which I want to share.
The required scripts are here :
https://github.com/mboisson/recording-script

If you want to see the result, it looks like this :
http://mboisson.github.io/testing/bash_lesson.html#end

*To install : *
0) On Mac, install gsed, gawk and core-utils using brew (Because the tools provided by Mac are not GNU).
1) Clone the repository above, and add it to your PATH.

*To use : *
recordsession.sh [email protected]:<user>/<repo>.git <filename> [delay]

For example, the above .html was recorded using the command
recordsession.sh [email protected]:mboisson/testing.git bash_lesson 10

* The script pushes from the gh-pages branch, and creates one if it does not exist. I have used it with SWC 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 I got from here http://github.com/pixelb/scripts/commits/master/scripts/ansi2html.sh

I hope this can be useful to someone else!


--
---------------------------------
Maxime Boissonneault
Analyste de calcul - Calcul Québec, Université Laval
Président - Comité de coordination du soutien à la recherche de Calcul Québec
Team lead - Research Support National Team, Compute Canada
Instructeur Software Carpentry
Ph. D. en physique


--
---------------------------------
Maxime Boissonneault
Analyste de calcul - Calcul Québec, Université Laval
Président - Comité de coordination du soutien à la recherche de Calcul Québec
Team lead - Research Support National Team, Compute Canada
Instructeur Software Carpentry
Ph. D. en physique


--
---------------------------------
Maxime Boissonneault
Analyste de calcul - Calcul Québec, Université Laval
Président - Comité de coordination du soutien à la recherche de Calcul Québec
Team lead - Research Support National Team, Compute Canada
Instructeur Software Carpentry
Ph. D. en physique

_______________________________________________
Discuss mailing list
[email protected]
http://lists.software-carpentry.org/mailman/listinfo/discuss_lists.software-carpentry.org

Reply via email to