Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
almirsarajcic committed Sep 18, 2024
1 parent aee480c commit 904a772
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
4 changes: 2 additions & 2 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -85,18 +85,18 @@ function install() {
case $current_shell in
"bash" | "rbash")
echo "eval \"\$(~/.local/bin/mise activate bash)\"" >>$config_file
eval "$(~/.local/bin/mise hook-env -s bash)"
;;
"zsh")
echo "eval \"\$(~/.local/bin/mise activate zsh)\"" >>$config_file
eval "$(~/.local/bin/mise hook-env -s zsh)"
;;
*)
echo "Unsupported shell: $current_shell"
exit 1
;;
esac

eval "$(~/.local/bin/mise hook-env)"

echo "--- Debug $config_file ---"
cat $config_file
echo "--- End debug $config_file ---"
Expand Down
4 changes: 2 additions & 2 deletions priv/static/macOS.sh
Original file line number Diff line number Diff line change
Expand Up @@ -93,18 +93,18 @@ function install() {
case $current_shell in
"bash" | "rbash")
echo "eval \"\$(~/.local/bin/mise activate bash)\"" >>$config_file
eval "$(~/.local/bin/mise hook-env -s bash)"
;;
"zsh")
echo "eval \"\$(~/.local/bin/mise activate zsh)\"" >>$config_file
eval "$(~/.local/bin/mise hook-env -s zsh)"
;;
*)
echo "Unsupported shell: $current_shell"
exit 1
;;
esac

eval "$(~/.local/bin/mise hook-env)"

echo "--- Debug $config_file ---"
cat $config_file
echo "--- End debug $config_file ---"
Expand Down
7 changes: 6 additions & 1 deletion test/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,12 @@ SHELL := $(shell echo $$SHELL)
.SHELLFLAGS := -eu -c

serve:
eval "$(~/.local/bin/mise hook-env)"
@if [[ "$$SHELL" == *"bash"* ]]; then \
eval "$$(~/.local/bin/mise hook-env -s bash)"; \
elif [[ "$$SHELL" == *"zsh"* ]]; then \
eval "$$(~/.local/bin/mise hook-env -s zsh)"; \
fi

initdb -D ~/pgdata -U postgres
pg_ctl start -D ~/pgdata
mix phx.new --no-install phx_tools_test
Expand Down

0 comments on commit 904a772

Please sign in to comment.