Created
September 10, 2015 13:34
-
-
Save sshine/8a145cdbae28832b6730 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let ghciEscape arg = "'" ++ concatMap (\c -> if c == '\'' then "'\"'\"'" else [c]) arg ++ "'" | |
:def! hoogle return . (":! hoogle --color --count=20 " ++) . ghciEscape | |
:def! doc return . (":! hoogle --color --info " ++) . ghciEscape | |
:set prompt "\ESC[1;34m%s\n\ESC[0;34mλ> \ESC[m" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment