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

[FIX] add venv support #21

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lionel-deglise
Copy link

Add env (ex: Python venv) support by searching env in () or [] before lambda in Cmder prompt

-- set some variable. But the variables are differently named and we would never
-- get them all, so try to parse the env name out of the PROMPT.
-- envs are usually put in round or square parentheses and before the old prompt
local env = old_prompt:match('.*%([.*]%)%sλ')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use {lamb} here instead of the raw character?

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this PR has to be refactored to fit the new segment approach

@mattdkerr
Copy link
Contributor

@lionel-deglise would you be able to rebase and update your PR?

@DeepSpace2
Copy link

DeepSpace2 commented Jul 24, 2020

I got it to work with the new segment system. However, this repo seems to be dead. Is there a point in submitting a new PR for this?

Not as fancy as the solution in #37, just showing the virtual env between parenthesis before the prompt symbol (as it is in "default" cmder).

image

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

Successfully merging this pull request may close these issues.

None yet

4 participants