0

Hello: I wish to list all historical command in Prelude, in the way that any unix shell could in "history" command. I tried several guesses but failed. How can I do that?

Cœur
  • 37,241
  • 25
  • 195
  • 267
vik santata
  • 2,989
  • 8
  • 30
  • 52

1 Answers1

4

Mine appears at ~/.ghc/ghci_history, although depending on your machine, it could be at a different place.

jamshidh
  • 12,002
  • 17
  • 31
  • I don't seem to have a hidden .ghc under my home directory. Do I have to setup Prelude to make it record my commands? – vik santata Feb 29 '16 at 02:00
  • 1
    What OS are you using? I actually found the file in question by typing something large and unique in ghci, then doing a grep for that word at the command line.... You could also do a "locate ghci_history", or even "find . | grep ghci_history" in your home directory. – jamshidh Feb 29 '16 at 03:48