I like the Rye project manager better than virtualenvwrapper, but missed workon
. So I made a bash shell script that, for my purpose, does the same thing as workon
. It's called Bourbon.
When you're in a Rye-based project (for example, project_x), do bourbon add
, and then in another terminal session you can do bourbon list
to show the projects Bourbon knows about, and bourbon project_x
to go to the project. Just type bourbon
alone to get help.
To be able to invoke it from anywhere, I put it in my source directory and made it executable with chmod +x bourbon.sh
. Then in my .zshrc, I put:
source /Users/garyrob/source/bourbon.sh
If bourbon
is too much to type, you can add:
alias bbn=bourbon
The script is at https://github.com/garyrob/bourbon/blob/main/bourbon.sh.
Comments