terminalizer icon indicating copy to clipboard operation
terminalizer copied to clipboard

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

Open germanviscuso opened this issue 4 years ago • 2 comments

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).

germanviscuso avatar Sep 10 '20 16:09 germanviscuso

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.

clample avatar Oct 21 '22 09:10 clample

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.

shawalli avatar Mar 07 '23 15:03 shawalli