Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vincentto13/uvenv.plugin.zsh
Plugin for easy managing python's virtual envs
https://github.com/vincentto13/uvenv.plugin.zsh
Last synced: about 1 month ago
JSON representation
Plugin for easy managing python's virtual envs
- Host: GitHub
- URL: https://github.com/vincentto13/uvenv.plugin.zsh
- Owner: vincentto13
- License: mit
- Created: 2018-08-28T07:47:33.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2018-08-28T20:21:10.000Z (over 5 years ago)
- Last Synced: 2024-01-25T15:13:16.873Z (4 months ago)
- Language: Shell
- Size: 8.79 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-zsh-plugins - uvenv - Extends the functionality of the original [oh-my-zsh](https://ohmyz.sh/) `venv` module. (Plugins / ZSH on Windows)
- fucking-awesome-zsh-plugins - uvenv - Extends the functionality of the original đ [oh-my-zsh](ohmyz.sh/) `venv` module. (Plugins / ZSH on Windows)
- awesome-zsh-plugins - uvenv - Extends the functionality of the original oh-my-zsh venv module. (Plugins / Zinit (nÊe zplugin))
- awesome-zsh-plugins - uvenv - Extends the functionality of the original [oh-my-zsh](https://ohmyz.sh/) `venv` module. (Plugins / ZSH on Windows)
README
# uvenv.plugin.zsh
Plugin which extends regular oh-my-zsh! venv plugin functionality## Installation
You're required to copy uvenv.plugin.zsh into your regular oh-my-zsh! plugin directory. Similar to example below```
mkdir -p $ZSH/plugins/uvenv
cp uvenv.plugin.zsh $ZSH/plugins/uvenv
```Enable plugin in your .zshrc file extending your regular list, for example
```
plugins=(git uvenv)
```In case of any troubles please reffer to oh-my-zsh! documentation.
To have more benefit from using this plugin make sure you add virtualenv_prompt_info to the theme youre using, for example:
in regular $ZSH/themes/robbyrussell.zsh-theme file I've changed the following line
```
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(git_prompt_info)'
```
into
```
PROMPT='${ret_status} %{$fg[cyan]%}%c%{$reset_color%} $(virtualenv_prompt_info) $(git_prompt_info)'
```When you're done, the terminal would inform you about your virtualenv status, and give you some more commands.
## Terminal examples
Besides new commands, the prompt will change as follow
* If you've not active virtualenv, and you're not in directory which contains virtualenv, the prompt would look like:
```console
â ~ venv:[None]
```* If you've not active virtualenv, but the directory contains virtualenv inside. It will look like:
```console
â coffee venv:[coffee]
```* If you'd now activate virtual env, the name will change its collor to yellow
* When you've active virtualenv, but you changed directory to one that contains it's own virtualenv, you'll see something similar to:
```console
â simplist venv:[coffee|simplist]
```