[READ-ONLY] Mirror of https://github.com/mrgnw/dotfiles. My shell customizations - aliases, functions, and themes.
dotfiles shell zinit zsh
0

Configure Feed

Select the types of activity you want to include in your feed.

use uv for pip / env

+9 -17
+9 -17
python.zsh
··· 1 - # zinit ice OMZ::davidparsson/zsh-pyenv-lazy silent wait"0b" 2 - # zinit load davidparsson/zsh-pyenv-lazy 3 - 4 - p+() {pip install "$@"} 5 - p-() {pip uninstall "$@"} 1 + p+() { uv pip install "$@"} 2 + p-() { uv pip uninstall "$@"} 6 3 7 - alias jupy='jupyter notebook' 8 - 9 - # activate env 10 - »py() { 11 - # activate .venv or create venv 12 - if [[ -d .venv ]]; 13 - then source .venv/bin/activate 14 - else 15 - python -m venv .venv 16 - source .venv/bin/activate 17 - fi 4 + »(){ 5 + if [ -d .venv ]; then 6 + source .venv/bin/activate 7 + else 8 + echo "\t» ~/.venv" 9 + source ~/.venv/bin/activate 10 + fi 18 11 } 19 12 «(){ deactivate } 20 - -v() { trash .venv} 21 13 22 14 # allows pip install x[y] 23 15 set +o nomatch