Created
May 27, 2017 07:17
-
-
Save Tuurlijk/ea5f402301f6136ad4686b458f922155 to your computer and use it in GitHub Desktop.
ghci color prompt
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
-- 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" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Haskell color lambda prompt.
You'll need a Powerline capable font for this to render the arrow character correctly.