Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Usage tip, especially for Mac OS X with custom, non-SHELL bash 4+ #4

Open
joelpurra opened this issue Jan 19, 2015 · 1 comment
Open

Comments

@joelpurra
Copy link

joelpurra commented Jan 19, 2015

Update: using shell-keystroke-animator instead -- see examples below.


I depend on a Bash 4+ shellscript in my $PS1, which crashed when using ttyrec. Bash 4+ is in my path, but not set as my $SHELL - on Mac OS X 10.10 Yosemite, the default $SHELL is /bin/bash (v3.2.53).

In order to get ttyrec to work, I used SHELL=/usr/local/bin/bash ttyrec myrecording.

sw_vers
# ProductName:  Mac OS X
# ProductVersion:   10.10.1
# BuildVersion: 14B25

echo "$SHELL"
# /bin/bash

/bin/bash --version
# GNU bash, version 3.2.53(1)-release (x86_64-apple-darwin14)
# Copyright (C) 2007 Free Software Foundation, Inc.

which bash
# /usr/local/bin/bash

/usr/local/bin/bash --version
# GNU bash, version 4.3.33(1)-release (x86_64-apple-darwin14.1.0)
# Copyright (C) 2013 Free Software Foundation, Inc.
# License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
# 
# This is free software; you are free to change and redistribute it.
# There is NO WARRANTY, to the extent permitted by law.

# Since `ttyrec` uses `getenv("SHELL")`, set SHELL for this execution:
SHELL=/usr/local/bin/bash ttyrec myrecording

Thanks!

@joelpurra
Copy link
Author

joelpurra commented Jan 21, 2015

Didn't have much luck using ttyrec in the end. Check out the new tool I created for recording my own project demos: shell-keystroke-animator
https://github.com/joelpurra/shell-keystroke-animator

shell-keystroke-animator in action

shell-keystroke-animator Google search demo

shell-keystroke-animator Terminal demo

jqnpm in action

shell-keystroke-animator TextEdit demo, with a shadow

shell-keystroke-animator TextEdit demo, without a shadow

npshell in action

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant