faressoft / terminalizer

🦄 Record your terminal and generate animated gif images or share a web player
https://terminalizer.com
MIT License
15.37k stars 499 forks source link

Custom command prompt for a recording: Exported PS1 environment variable is being overwritten #135

Open germanviscuso opened 4 years ago

germanviscuso commented 4 years ago

I explicitly export the PS1 environment variable to change my prompt to just '$' for a recording and terminalizer overwrites it with my default value. How can I change my PS1 temporarily for the recording? Adding PS1 or ps1 to the env section in the config has no effect. I don't want to change my PS1 globally (just for the recording).

clample commented 2 years ago

One option might be to change the run command in the terminalizer config. I had the same issue with the default run command /bin/bash -l. Changing it to just /bin/bash fixed the issue for me and the PS1 variable isn't overridden.

shawalli commented 1 year ago

Wouldn't it make sense to add a config for this? During a record, capture the PS1 value. Once the recording is complete, perform an exact match search through all records and swap out the value for the configured value.