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

show "(env)" at start of Terminal prompt when Python virtual environment env is activated #65

Open
dinhhnguyen opened this issue Jan 15, 2025 · 0 comments

Comments

@dinhhnguyen
Copy link

dinhhnguyen commented Jan 15, 2025

with Installation Instructions 4. in your homepage

# in .zshrc

precmd() {
  __posh_git_ps1 '%n@%m:%~ ' '$ '
}

my Terminal prompt shows

dinh@serial_number:~/git_repository [git status]$

But when I activate the repository's Python virtual environment env, it does not show "(env)" at the start of prompt as below

(env) dinh@serial_number:~/git_repository [git status]$

How can I change the above precmd(), or what can I do, to get that "(env)" when activated?
Thanks.

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

No branches or pull requests

1 participant