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> ".

share|improve this question
up vote 67 down vote accepted

Have you tried adding :set prompt "ghci> " to ~/.ghci?

share|improve this answer
    
Sorry for such a basic question, but I can't understand: What is the full name of the .ghci file? And where exactly to put that file? I tried putting this file in the neighbourhood of a haskell code file, but the ghci didn't seem to read that .ghci file. – awllower Feb 26 '15 at 5:14
    
In Windows, you put the file in your user directory. E.g. `C:\Users\YourUsername`. – MasterMastic Apr 2 '15 at 8:09

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.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.