Customizing `REPL_PROMPT` #15

Zearin opened this Issue Apr 26, 2012 · 1 comment


None yet

2 participants

Zearin commented Apr 26, 2012

So, repl checks for a REPL_PROMPT environment variable on startup.

I tried using the environment variable to colorize the prompt, but repl prints the color escape sequences literally. I also can’t use #{ARGV[0]} because it, too, is printed out verbatim.

These two things make customization with REPL_PROMPT pretty useless.

@lepht lepht added a commit to lepht/repl that referenced this issue May 11, 2012
@lepht lepht Improves custom prompt
Fixes #15 in defunkt/repl

Checks the environment variable `REPL_PROMPT_SIMPLE` to determine
whether to include `#{ARGV[0]}` prefix as a part of the prompt,
regardless of whether a custom `REPL_PROMPT` has been specified
This was referenced May 11, 2012

Duplicate of issue #16.

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