-
Notifications
You must be signed in to change notification settings - Fork 436
terminal is reloaded while starting termtosvg #20
Comments
On startup termtosvg creates a new shell and this shell loads all the usual configuration files. This way you have all your usual settings and aliases. Why should loading ~/.bashrc be avoided? |
One simple reason to avoid this is, working in different environment/setup would need some specific settings and loading ~/.bashrc again will set those to default value... |
Seems quite specific, I don't think it should be the default behavior of termtosvg. A solution would be to provide a
This would make termtosvg run '/bin/bash --norc' instead of $SHELL which would prevent bash from loading the configuration files. It could also be useful in other cases (recording a Python interpreter directly so that the call to python or ipython is not shown in the animation). |
The problem is more serious than it looks. I would never want to record (even if execution is not a major issue) my pre configuration commands to svg file each time I use this utility. This will simply be irrelevant and not useful. So I feel this should be considered as a fault than enhancement. Configurable option should be fine .. but again the question is about the default behavior (Whether to enable or disable this by default). Is there a real need to create a fresh shell always? |
Basically termtosvg sits between the shell that called it and the new shell it spawns so that it can capture all I/O of the 'new' shell. This is the only way I know of to capture all I/O of a shell. |
Several things you probably wanna try : no homeHOME=/tmp termtosvg bash won't find the .bashrc and keep every you had in your previous environment (it'll fail to find your user-configs when launching programs so you'll have to specify them manually when lauching them) no bashSHELL=sh termtosvg it's another shell, it should be default... and still will carry your previous env.
no weird bashrcYou definitely shouldn't have some project specific variables in a new bash session. |
Hi,
Whenever termtosvg is started the .bashrc is reloaded.
Can this be avoided ?
The text was updated successfully, but these errors were encountered: