Skip to content

Commit a59433a

Browse files
authored
feat(plugins): add virtualenvwrapper plugin (#689)
1 parent 4a3538c commit a59433a

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

plugins/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ By leveraging these plugins, you can streamline your workflow and tackle coding
5454
| sudo | Utility for executing commands with superuser privileges on Unix and Unix-like systems. |
5555
| tmux-autoattach | Plugin related to session management in the tmux terminal multiplexer. |
5656
| vagrant | Tool for creating and managing virtual development environments. |
57+
| virtualenvwrapper | A set of extensions to the virtualenv tool. |
5758
| xterm | Terminal emulator for X Window systems providing a graphical user interface for accessing the command line. |
5859
| zellij-autoattach | Plugin related to session management in the zellij terminal multiplexer. |
5960
| zoxide | Utility for quickly navigating the filesystem based on visited directory history. |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# virtualenvwrapper plugin
2+
3+
The virtualenvwrapper plugin enables virtualenvwrapper functions in bash.
4+
5+
To use it, install
6+
[virtualenvwrapper](https://github.com/python-virtualenvwrapper/virtualenvwrapper) and add
7+
virtualenvwrapper to the plugins array of your bashrc file:
8+
9+
```bash
10+
plugins=(... virtualenvwrapper)
11+
```
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#! bash oh-my-bash.module
2+
3+
# Check if virtualenvwrapper is installed
4+
if _omb_util_command_exists virtualenvwrapper.sh; then
5+
# Source the virtualenvwrapper script
6+
source virtualenvwrapper.sh
7+
else
8+
_omb_util_print '[oh-my-bash] virtualenvwrapper not found, please install it from https://github.com/python-virtualenvwrapper/virtualenvwrapper' >&2
9+
fi

0 commit comments

Comments
 (0)