Take the 2-minute tour ×

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

2 Answers 2

up vote 46 down vote accepted

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

share|improve this answer
Thanks, that was exactly what I was asking for, that ~/.ghci file :) –  rturrado Oct 29 '10 at 14:41

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


