lukesampson / pshazz

Give your powershell some pizazz.
The Unlicense
577 stars 40 forks source link

Add virtualenv plugin #67

Closed chawyehsu closed 6 years ago

chawyehsu commented 6 years ago

A tiny plugin to display virtualenv in prompt.

Usage example: https://github.com/h404bi/dotfiles/blob/master/src/pshazz/h404bi.json

{
    "plugins": [ "virtualenv" ],
    "prompt": [
        [ "darkgreen",   "", "$hostname" ],
        [ "darkcyan",    "", " $dir" ],
        [ "darkcyan",  "", " $virtualenv_lbracket$virtualenv"],
        [ "darkcyan",  "", "$virtualenv_rbracket"],
        [ "",            "", "`n$" ]
    ],
    "virtualenv": {
        "prompt_lbracket": "[",
        "prompt_rbracket": "]"
    }
}

What it looks like: venv_demo

And please make a new release of pshazz for scoop if this pull request being merged.

lukesampson commented 6 years ago

Cool, thank you.