mirror of
https://github.com/asdf-vm/asdf.git
synced 2024-11-15 01:28:17 -07:00
add to PATH once. Fixes #261
This commit is contained in:
parent
c838b99298
commit
e2a98e1345
4
asdf.sh
4
asdf.sh
@ -8,7 +8,9 @@ fi
|
|||||||
|
|
||||||
export ASDF_DIR
|
export ASDF_DIR
|
||||||
ASDF_DIR="$(cd "$(dirname "$current_script_path")" &> /dev/null || exit 1; pwd)"
|
ASDF_DIR="$(cd "$(dirname "$current_script_path")" &> /dev/null || exit 1; pwd)"
|
||||||
export PATH="${ASDF_DIR}/bin:${ASDF_DIR}/shims:$PATH"
|
|
||||||
|
[[ ":$PATH:" != *":${ASDF_DIR}/bin:"* ]] && PATH="${ASDF_DIR}/bin:$PATH"
|
||||||
|
[[ ":$PATH:" != *":${ASDF_DIR}/shims:"* ]] && PATH="${ASDF_DIR}/shims:$PATH"
|
||||||
|
|
||||||
if [ -n "$ZSH_VERSION" ]; then
|
if [ -n "$ZSH_VERSION" ]; then
|
||||||
autoload -U bashcompinit
|
autoload -U bashcompinit
|
||||||
|
Loading…
Reference in New Issue
Block a user