customize

This commit is contained in:
tavo 2024-12-24 23:36:13 -06:00
parent 7264fc8d86
commit ede252b89c

View file

@ -14,12 +14,12 @@ printf 'for f in pyv pyv_comp.bash ; do if [ -f ~/.local/share/pyv/$f ] ; then .
`pyv [ls|new|rm|enter|exit] myvenv` `pyv [ls|new|rm|enter|exit] myvenv`
```sh ```sh
pyv new v1 # create venv named v1 pyv new v1 # create venv named v1
pyv new v2 # create venv named v2 pyv new v2 # create venv named v2
pyv ls # list venvs pyv ls # list venvs
pyv rm v2 # delete venv named v2 pyv rm v2 # delete venv named v2
pyv enter v1 # enter venv named v1 pyv enter v1 # enter venv named v1
pyv exit # exit current venv pyv exit # exit current venv
``` ```
## Update ## Update
@ -34,3 +34,14 @@ git -C ~/.local/share/pyv pull
rm -rf ~/.local/share/pyv rm -rf ~/.local/share/pyv
# Also remove corresponding line in ~/.bashrc # Also remove corresponding line in ~/.bashrc
``` ```
## Customize `$VENV_DIR`
By default, it stores venv data in `${XDG_DATA_HOME}/pyv` or
`${HOME}/.local/share/pyv`, to change this behavior, set a different `$VENV_DIR`
variable:
```sh
# Add this line to bashrc to persist
VENV_DIR="$HOME/myvenvs"
```