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

Open in the current directory #15

Open
IonicaBizau opened this issue Sep 16, 2015 · 3 comments
Open

Open in the current directory #15

IonicaBizau opened this issue Sep 16, 2015 · 3 comments

Comments

@IonicaBizau
Copy link

Seems like now it opens in the user home.

@gunar
Copy link

gunar commented Jan 27, 2016

same here

@Miserlou
Copy link

Big +1.

Even a way to call a "setup" script would be okay, so that I could cd ~/demo; source env/bin/activate; vim my_project.py; before recording begins

@webavant
Copy link

webavant commented Apr 23, 2016

Set up your environment before launching the ttystudio command, e.g:

HOME=/path/to/my/project ttystudio output.gif

Works on Mac/*Nix. Can't remember how to do it on Windows, but it's slightly less trivial.

Regarding a "setup" script, investigate setting up your terminal profile. ttystudio uses the node blessed and term.js libraries to launch the program shell configured in your SHELL environment variable. It defaults to 'sh', which is aliased to bash on most systems, or to other streamlined shells in barebones systems. If your SHELL is not already customized, Macs and most linux distros are configured with defaults to automatically load ~/.bash_profile and ~/.bashrc immediately upon login before even displaying the prompt. The best solution is to change the SHELL environmental variable before launching ttystudio. Write a shell script to to launch vim immediately inside of ttystudio's new shell instance, then set SHELL to that path, e.g. SHELL=/my/script/path/file ttystudio output.gif.

For the trifecta (twofecta?), combine the two in a one-liner:

HOME=/path/to/my/project SHELL=/my/script/path/file ttystudio output.gif

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

4 participants