diff --git a/Makefile b/Makefile index ab86a49..1b9b4fd 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,5 @@ VERSION ?= $(shell git describe --tags --always --dirty=-dev | sed 's/^v//g') +PREFIX ?= ~/bin VENV_BIN = ./.venv/bin lint: @@ -17,7 +18,7 @@ env: $(VENV_BIN)/pre-commit install --install-hooks install: - ln -sf $(shell pwd)/src/viv.py ~/bin/viv + ln -sf $(shell pwd)/src/viv.py $(PREFIX)/viv uninstall: rm ~/bin/viv diff --git a/README.md b/README.md index 2c77d29..ffe62f8 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,16 @@ # Viv isn't venv ## Setup + +Start by cloning the repo and symlinking the script for access to the CLI. +By default it will symlink `./src/viv.py` to `~/bin/viv`. +You can set `PREFIX` to symlink to a different location. + +```sh +git clone git@github.com:daylinmorgan/viv.git ~/.viv +make install # or PREFIX=~/.local/bin make install +``` + Place this directory on the python path in your rc file. ```sh