Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd: change the prompt in lua #961

Merged
merged 1 commit into from
Jun 21, 2016

Commits on Jun 21, 2016

  1. cmd: change the prompt in lua

    This keeps the PROMPT variable as is and changes the prompt to the cmder style
    in the clink code.
    
    This has two advantages:
    
    * opening a cmd in a cmder session will now show the old prompt code instead of
      a ugly raw prompt without the replacements. This led to ugly output when a
      batch file echoed their content (e.g `conda build recipe/`).
    
    * when a command rewrites the prompt (e.g. an activate in a virtualenv), these
      command sometimes simply overwrites the PROMPT so that the cmder enhancements
      were not anymore in place. Now we simply don't care and overwrite it with our
      stuff in the clink part. This might mean that a user has to install a lua
      script so that e.g. conda environments are visible on the prompt.
    jankatins committed Jun 21, 2016
    Configuration menu
    Copy the full SHA
    a542f4e View commit details
    Browse the repository at this point in the history