Hello Travis, I’m a big fan (!) Long time builder, first time poster.
I don’t know if there’s a way to do what I want already or not. But I’d like to customize the
$ which prefixes script commands with a custom prompt. For instance: I have a config environment variable NUMBER which helps identify the build in the matrix, and rather than seeing:
$ some command
It would be very useful to me if it could say, e.g.:
#3 $ some command
That would make it easier to go quickly between being in the middle of reading a log file and then to switch over to editing the .travis.yml for that build. (In my case, the other parameters are subtle permutations that it takes time to scan and absorb and make the connection.)
I tried setting the PS1 environment variable, but it seemed to be ignored. I gather Travis is just printing that dollar sign literally somewhere.
Is there any way to configure this, or to get an equivalent “small piece of information output automatically with every step”? (If someone does figure out how to do this, it would be helpful if they could demonstrate it literally with my case–putting the
# sign in the prompt–because I’m also getting a situation where # in the YAML is being interpreted as a comment even when inside a string. )