Let the user choose how they add .local/bin.

This commit is contained in:
Julien Palard 2022-09-02 10:46:06 +02:00
parent 1f42788450
commit 8a2ef9a7f7
Signed by: mdk
GPG Key ID: 0EFC1AC1006886F8
2 changed files with 6 additions and 4 deletions

View File

@ -14,14 +14,18 @@ xz-utils tk-dev libxml2-dev libxmlsec1-dev libffi-dev liblzma-dev
```
## Usage
## Installation
Clone the repo anywhere, then in your `~/.bashrc` add:
source PATH/To/THE/REPO/compile-python.sh
And for the compiled Python to be found in your PATH:
TL;DR:
PATH="$PATH:$HOME/.local/bin"
## Usage
```bash
$ compile-pythons

View File

@ -62,5 +62,3 @@ _compile_python()
COMPREPLY=( $( compgen -W '$( command curl -s https://www.python.org/ftp/python/ | grep -o ">[0-9.]\+/<" | sed "s/^>//;s|/<$||" )' -- "${COMP_WORDS[COMP_CWORD]}") )
}
complete -F _compile_python compile-python
PATH="$PATH:$HOME/.local/bin"