venvs/relate
This commit is contained in:
parent
8e69d784fc
commit
23e3475c91
1 changed files with 7 additions and 0 deletions
7
re.sh
7
re.sh
|
@ -142,6 +142,12 @@ venvs() {
|
|||
list_venv "${venv}"
|
||||
deactivate
|
||||
;;
|
||||
"relate")
|
||||
absolute="$(readlink -f "${venv}/bin/python")"
|
||||
prevenv="$(readlink -f "${venv}")"
|
||||
relative=$(echo "${absolute}" | sed "s|${prevenv}|..|")
|
||||
echo ln --force --symbolic "${relative}" "${venv}/bin/python"
|
||||
;;
|
||||
*) ;;
|
||||
esac
|
||||
done
|
||||
|
@ -162,6 +168,7 @@ venvs create
|
|||
deactivate
|
||||
|
||||
venvs init
|
||||
venvs relate
|
||||
venvs link
|
||||
venvs install
|
||||
venvs list
|
||||
|
|
Loading…
Reference in a new issue