Octave Lambda Prompt (PS1)
Problem
So I had an ugly prompt, a very ugly one
Solution!
I checked the glorious docs for octave and it was pretty easy, just write
octave:1> PS1 'λ> '
λ>
and you will be done!
But this also looks ugly! (color wise)
octave:1> PS1 ('\[\033[01;31m\]λ> \[\033[0m\]')
λ>
Adds a red color to it which looks far better, check the image below
Making the change permanent.
Now add the previous line to ~/.octaverc
, and you are set!
echo "PS1 ('\[\033[01;31m\]λ> \[\033[0m\]')" > ~/.octaverc