mirror of
https://github.com/daylinmorgan/viv.git
synced 2024-12-22 10:40:44 -06:00
docs: update install instructions
This commit is contained in:
parent
8e4cb1d3b2
commit
d265dae9c3
2 changed files with 12 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -1,4 +1,5 @@
|
||||||
VERSION ?= $(shell git describe --tags --always --dirty=-dev | sed 's/^v//g')
|
VERSION ?= $(shell git describe --tags --always --dirty=-dev | sed 's/^v//g')
|
||||||
|
PREFIX ?= ~/bin
|
||||||
VENV_BIN = ./.venv/bin
|
VENV_BIN = ./.venv/bin
|
||||||
|
|
||||||
lint:
|
lint:
|
||||||
|
@ -17,7 +18,7 @@ env:
|
||||||
$(VENV_BIN)/pre-commit install --install-hooks
|
$(VENV_BIN)/pre-commit install --install-hooks
|
||||||
|
|
||||||
install:
|
install:
|
||||||
ln -sf $(shell pwd)/src/viv.py ~/bin/viv
|
ln -sf $(shell pwd)/src/viv.py $(PREFIX)/viv
|
||||||
|
|
||||||
uninstall:
|
uninstall:
|
||||||
rm ~/bin/viv
|
rm ~/bin/viv
|
||||||
|
|
10
README.md
10
README.md
|
@ -1,6 +1,16 @@
|
||||||
# Viv isn't venv
|
# Viv isn't venv
|
||||||
|
|
||||||
## Setup
|
## 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.
|
Place this directory on the python path in your rc file.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
|
|
Loading…
Reference in a new issue