Bash Shell wrapper to activate pipx
installed package virtual environment
- ⬆️ Top of Document
- 🏗️ Requirements
- ⚡ Quick Start
- 🧰 Usage
- 🗒 Notes
- 📈 Contributing
- 📇 Attribution
- ⚖️ Licensing
- Shell: Bash version
4.4
or greater
Clone this project;
mkdir -vp ~/git/hub/python-utilities
cd ~/git/hub/python-utilities
git clone [email protected]:python-utilities/pipx-activate.bashrc.git
Add source
line to your ~/.bashrc
file;
source "${HOME}/git/hub/python-utilities/pipx-activate.bashrc/pipx-activate.bashrc"
Use the exported pipx-activate
function to activate virtual environments
installed by pipx
;
pipx-activate <package-name>
Note; if a given
<package-name>
is not found underPIPX_LOCAL_VENVS
, then you may be prompted to install the given<package-name>
This repository may not be feature complete and/or fully functional, Pull Requests that add features or fix bugs are certainly welcomed.
Options for contributing to pipx-activate.bashrc and python-utilities
Start making a Fork of this repository to an account that you have write permissions for.
- Add remote for fork URL. The URL syntax is
[email protected]:<NAME>/<REPO>.git
...
cd ~/git/hub/python-utilities/pipx-activate.bashrc
git remote add fork [email protected]:<NAME>/pipx-activate.bashrc.git
- Commit your changes and push to your fork, eg. to fix an issue...
cd ~/git/hub/python-utilities/pipx-activate.bashrc
git commit -F- <<'EOF'
:bug: Fixes #42 Issue
**Edits**
- `<SCRIPT-NAME>` script, fixes some bug reported in issue
EOF
git push fork main
Note, the
-u
option may be used to setfork
as the default remote, eg.git push -u fork main
however, this will also default thefork
remote for pulling from too! Meaning that pulling updates fromorigin
must be done explicitly, eg.git pull origin main
- Then on GitHub submit a Pull Request through the Web-UI, the URL syntax is
https://github.com/<NAME>/<REPO>/pull/new/<BRANCH>
Note; to decrease the chances of your Pull Request needing modifications before being accepted, please check the dot-github repository for detailed contributing guidelines.
Thanks for even considering it!
Via Liberapay you may
on a
repeating basis.
Regardless of if you're able to financially support projects such as pipx-activate.bashrc that python-utilities maintains, please consider sharing projects that are useful with others, because one of the goals of maintaining Open Source repositories is to provide value to the community.
- GitHub --
github-utilities/make-readme
- Stack Overflow -- Bash
set -x
only for the duration of a function
This project is licensed based on use-case
If a project is either commercial or (||
) proprietary, then please
contact the author for pricing and licensing options to make use of code and/or
features from this repository.
If a project is both non-commercial and (&&
) published with a license
compatible with AGPL-3.0, then it may utilize code from this repository under
the following terms.
Bash Shell wrapper to activate `pipx` installed package virtual environment
Copyright (C) 2025 S0AndS0
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation, version 3 of the License.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
For further details review full length version of AGPL-3.0 License.