ghci configuration file
HaskellGhciHaskell Problem Overview
I'm using ghci 6.8.2 on Ubuntu. Does ghci use a configuration file where we can do some initial setup?. E.g.: :set prompt "ghci> "
.
Haskell Solutions
Solution 1 - Haskell
Have you tried adding :set prompt "ghci> "
to ~/.ghci?
Solution 2 - Haskell
Having applied @hvr's answer I got the following warning:
*** WARNING: ~/.ghci is writable by someone else, IGNORING!
The solution is chmod g-w ~/.ghci
.
Solution 3 - Haskell
In my ~/.ghci
configuration file. I have the following line:
:set prompt "\ESC[0;34m\STX%s\n\ESC[1;31m\STXλ> \ESC[m\STX"
And here is how my ghci
prompt looks like:
https://asciinema.org/a/Tpk5430dPqCRN0cFqi1ucaCb8
In that config file, I temporarily commented out :set +m
.
Solution 4 - Haskell
In @truthadjustr's answer the prelude comes every time you run any command.
:set prompt "\ESC[1;31m\STXλ> \ESC[m\STX"
This command solves the problem.