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

Can't make the virtualenv plugin work #120

Open
arnos-stuff opened this issue Dec 12, 2022 · 2 comments
Open

Can't make the virtualenv plugin work #120

arnos-stuff opened this issue Dec 12, 2022 · 2 comments

Comments

@arnos-stuff
Copy link

Here's my terminal using a python virtualenv

image

Here's my babun config

{
    "plugins": ["git", "z", "virtualenv"],
    "prompt": [
        ["cyan", "", "{ $dir }"],
        ["green", "", " $git_branch"],
        ["", "", " $git_local_state"],
        ["", "", " $git_remote_state"],
        ["magenta", "", "[$virtualenv]"]
        ["magenta", "", " $([system.text.encoding]::utf8.getstring((194,187)))"]
    ],
    "git": {
        "prompt_unstaged": "*",
        "prompt_staged": "+",
        "prompt_stash": "$",
        "prompt_untracked": "%",
        "prompt_remote_push": ">",
        "prompt_remote_pull": "<",
        "prompt_remote_same": "="
    },
    "ignoreNativeAgent": true
}

What I want to achieve: Ideally I want the output to be like

{ jira } [ jira-py3.9 ] >> # my code
@arnos-stuff arnos-stuff changed the title Can't make the virtualenv plugin wrok Can't make the virtualenv plugin work Dec 12, 2022
@arnos-stuff
Copy link
Author

I finally somehow made it work, but I still have the ugly powershell thing in front

image

This was done using the following json config file:

{
    "plugins": ["git", "z", "virtualenv"],
    "prompt": [
        ["cyan", "", "{ $dir }"],
        ["magenta", "", " $virtualenv"],
        ["green", "", " $git_branch"],
        ["", "", " $git_local_state"],
        ["", "", " $git_remote_state"],
        ["magenta", "", " $([system.text.encoding]::utf8.getstring((194,187)))"]
    ],
    "git": {
        "prompt_unstaged": "*",
        "prompt_staged": "+",
        "prompt_stash": "$",
        "prompt_untracked": "%",
        "prompt_remote_push": ">",
        "prompt_remote_pull": "<",
        "prompt_remote_same": "="
    },
    "virtualenv": {
        "prompt_lbracket" : "(",
        "prompt_rbracket" : ")"

    },
    "ignoreNativeAgent": true
}

@arnos-stuff
Copy link
Author

I finally made it disappear using this trick: set disable env display in powershell profile.

image

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