Open autopulated opened 9 years ago
What would you suggest as a fix? How would you "clean" the terminal before launching?
I think unset PROMPT_COMMAND
.
Although possibly this is just a bug in the way I'm setting up these functions – is there anything unusual about the way the shell is launched?
The entire setup is unusual, though nothing specific to munging the environment variables. I am overriding the PS1 variable to guarantee a consistent user interface across machines.
When launching yotta.app, the terminal seems to inherit environment variables (specifically, PROMPT_COMMAND). This breaks things because .bashrc isn't sourced by the yotta shell, so my prompt command prints errors each time I run a command:
(setPrompt, abbrvPwd, setTitle are all defined in my .bashrc)