Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 17, 2024
1 parent 2c1bf03 commit 63d63b5
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 27 deletions.
53 changes: 30 additions & 23 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,17 @@ function install() {
;;
"mise")
curl https://mise.run | sh
echo "\n\neval \"$(~/.local/bin/mise activate $current_shell)\"" >>$config_file
echo "current_shell: $current_shell"
cat $config_file
case $current_shell in
"bash")
echo 'eval "$(~/.local/bin/mise activate bash)"' >>$config_file
;;
"fish")
echo '~/.local/bin/mise activate fish | source' >>$config_file
;;
"zsh")
echo 'eval "$(~/.local/bin/mise activate zsh)"' >>$config_file
;;
esac
source $config_file >/dev/null 2>&1
;;
"Erlang")
Expand Down Expand Up @@ -129,34 +137,34 @@ function maybe_install() {
}

function add_env() {
# echo ""
# echo -e "${white}"
# sleep 2
# maybe_install "Git"
echo ""
echo -e "${white}"
sleep 2
maybe_install "Git"

# echo -e "${white}"
# sleep 2
# maybe_install "wget"
echo -e "${white}"
sleep 2
maybe_install "wget"

echo -e "${white}"
sleep 3
maybe_install "mise"

# echo -e "${white}"
# sleep 1.5
# maybe_install "Erlang"
echo -e "${white}"
sleep 1.5
maybe_install "Erlang"

# echo -e "${white}"
# sleep 1.5
# maybe_install "Elixir"
echo -e "${white}"
sleep 1.5
maybe_install "Elixir"

# echo -e "${white}"
# sleep 1.5
# maybe_install "Phoenix"
echo -e "${white}"
sleep 1.5
maybe_install "Phoenix"

# echo -e "${white}"
# sleep 1.5
# maybe_install "PostgreSQL"
echo -e "${white}"
sleep 1.5
maybe_install "PostgreSQL"

echo -e "${white}"
echo -e "${cyan}${bold}phx.tools setup is complete!"
Expand Down Expand Up @@ -222,7 +230,6 @@ echo -e "${white} ${bold}"

sleep 1

# only true if user answer y/n
is_yn() {
case "$1" in
[yY] | [yY][eE][sS])
Expand Down
15 changes: 11 additions & 4 deletions priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,17 @@ function install() {
;;
"mise")
curl https://mise.run | sh
echo "\n\neval \"$(~/.local/bin/mise activate $current_shell)\"" >>$config_file
echo "current_shell: $current_shell"
cat $config_file
case $current_shell in
"bash")
echo 'eval "$(~/.local/bin/mise activate bash)"' >>$config_file
;;
"fish")
echo '~/.local/bin/mise activate fish | source' >>$config_file
;;
"zsh")
echo 'eval "$(~/.local/bin/mise activate zsh)"' >>$config_file
;;
esac
source $config_file >/dev/null 2>&1
;;
"Erlang")
Expand Down Expand Up @@ -220,7 +228,6 @@ echo -e "${white} ${bold}"

sleep 1

# only true if user answer y/n
is_yn() {
case "$1" in
[yY] | [yY][eE][sS])
Expand Down

0 comments on commit 63d63b5

Please sign in to comment.