Skip to content

Instantly share code, notes, and snippets.

@Tuurlijk

Tuurlijk/ghci.conf

Created May 27, 2017
Embed
What would you like to do?
ghci color prompt
-- Lambda prompt
-- Background color sequence = \ESC[48;5;236m
-- where
-- 236 = one of the 256 ansi color codes
-- Foreground color sequence = \ESC[38;5;244m
-- where
-- 244 = one of the 256 ansi color codes
-- Combined color sequence = \ESC[48;5;236;38;5;244m
-- Reset color = \ESC[m
--
-- https://en.wikipedia.org/wiki/ANSI_escape_code
:set prompt "\ESC[48;5;236;38;5;244m %s\ESC[38;5;28m λ \ESC[48;5;;38;5;236m \ESC[m"
@Tuurlijk

This comment has been minimized.

Copy link
Owner Author

@Tuurlijk Tuurlijk commented May 27, 2017

Haskell color lambda prompt.

You'll need a Powerline capable font for this to render the arrow character correctly.

schermafbeelding 2017-05-27 om 09 18 29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment