Skip to content

Commit

Permalink
Let's go
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 18, 2024
1 parent 0df42c3 commit f6f74c4
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 11 deletions.
21 changes: 11 additions & 10 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,10 @@ install() {
mise use -g erlang@$erlang_version
;;
"mise")
curl https://mise.run | $current_shell
curl https://mise.run | sh
printf "eval \"\$(mise activate $current_shell)\"\n" >>$config_file
eval "$(mise activate $current_shell)"
export PATH="$HOME/.local/bin:$PATH"
;;
"Phoenix")
mise exec -- mix local.hex --force
Expand Down Expand Up @@ -120,21 +121,21 @@ add_env() {
sleep 1.5
maybe_install "mise"

printf "${white}\n"
sleep 1.5
maybe_install "Erlang"
# printf "${white}\n"
# sleep 1.5
# maybe_install "Erlang"

printf "${white}\n"
sleep 1.5
maybe_install "Elixir"

printf "${white}\n"
sleep 1.5
maybe_install "Phoenix"
# printf "${white}\n"
# sleep 1.5
# maybe_install "Phoenix"

printf "${white}\n"
sleep 1.5
maybe_install "PostgreSQL"
# printf "${white}\n"
# sleep 1.5
# maybe_install "PostgreSQL"

printf "${white}\n"
printf "${cyan}${bold}phx.tools setup is complete!\n"
Expand Down
3 changes: 2 additions & 1 deletion priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ install() {
mise use -g erlang@$erlang_version
;;
"mise")
curl https://mise.run | $current_shell
curl https://mise.run | sh
printf "eval \"\$(mise activate $current_shell)\"\n" >>$config_file
eval "$(mise activate $current_shell)"
export PATH="$HOME/.local/bin:$PATH"
;;
"Phoenix")
mise exec -- mix local.hex --force
Expand Down
2 changes: 2 additions & 0 deletions test/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ serve: activate-mise
@echo "SHELL is $(SHELL)"
@echo "Current shell is $(current_shell)"
echo "Current PATH: $$PATH" && \
export PATH="$HOME/.local/bin:$PATH" && \
echo "Current PATH: $$PATH" && \
mise which mix && \
mise --version && \
mise plugin list && \
Expand Down

0 comments on commit f6f74c4

Please sign in to comment.