mirror of
https://github.com/nvm-sh/nvm.git
synced 2025-08-16 18:43:43 +00:00
Compare commits
3 Commits
965ad06978
...
f91846635c
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f91846635c | ||
![]() |
762f9ef9d1 | ||
![]() |
50694cb1f3 |
@ -32,7 +32,7 @@ before_install:
|
|||||||
- zsh --version
|
- zsh --version
|
||||||
- dpkg -s dash | grep ^Version | awk '{print $2}'
|
- dpkg -s dash | grep ^Version | awk '{print $2}'
|
||||||
# install python
|
# install python
|
||||||
- pyenv install 2.7.18
|
- pyenv local 2.7.18 || pyenv install 2.7.18
|
||||||
- pyenv local 2.7.18 || echo 'pyenv failed'
|
- pyenv local 2.7.18 || echo 'pyenv failed'
|
||||||
- python -V
|
- python -V
|
||||||
install:
|
install:
|
||||||
|
@ -40,7 +40,7 @@ nvm_profile_is_bash_or_zsh() {
|
|||||||
local TEST_PROFILE
|
local TEST_PROFILE
|
||||||
TEST_PROFILE="${1-}"
|
TEST_PROFILE="${1-}"
|
||||||
case "${TEST_PROFILE-}" in
|
case "${TEST_PROFILE-}" in
|
||||||
*"/.bashrc" | *"/.bash_profile" | *"/.zshrc" | *"/.zprofile")
|
*"/.bashrc" | *"/.bash_profile" | *"/.zshenv" | *"/.zshrc" | *"/.zprofile")
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
@ -300,11 +300,13 @@ nvm_detect_profile() {
|
|||||||
DETECTED_PROFILE="$HOME/.zshrc"
|
DETECTED_PROFILE="$HOME/.zshrc"
|
||||||
elif [ -f "$HOME/.zprofile" ]; then
|
elif [ -f "$HOME/.zprofile" ]; then
|
||||||
DETECTED_PROFILE="$HOME/.zprofile"
|
DETECTED_PROFILE="$HOME/.zprofile"
|
||||||
|
elif [ -f "$HOME/.zshenv" ]; then
|
||||||
|
DETECTED_PROFILE="$HOME/.zshenv"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "$DETECTED_PROFILE" ]; then
|
if [ -z "$DETECTED_PROFILE" ]; then
|
||||||
for EACH_PROFILE in ".profile" ".bashrc" ".bash_profile" ".zprofile" ".zshrc"
|
for EACH_PROFILE in ".profile" ".bashrc" ".bash_profile" ".zprofile" ".zshrc" ".zshenv"
|
||||||
do
|
do
|
||||||
if DETECTED_PROFILE="$(nvm_try_profile "${HOME}/${EACH_PROFILE}")"; then
|
if DETECTED_PROFILE="$(nvm_try_profile "${HOME}/${EACH_PROFILE}")"; then
|
||||||
break
|
break
|
||||||
|
Loading…
x
Reference in New Issue
Block a user