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 d447270 commit 7ca02b9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
7 changes: 4 additions & 3 deletions priv/static/Linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -86,16 +86,17 @@ function install() {
"bash" | "rbash")
echo "eval \"\$(~/.local/bin/mise activate bash)\"" >>$config_file
echo "eval \"\$(~/.local/bin/mise hook-env -s bash)\"" >>$config_file
eval "$(~/.local/bin/mise activate bash)"
eval "$(~/.local/bin/mise hook-env -s bash)"
;;
"zsh")
echo "eval \"\$(~/.local/bin/mise activate zsh)\"" >>$config_file
echo "eval \"\$(~/.local/bin/mise hook-env -s zsh)\"" >>$config_file
eval "$(~/.local/bin/mise activate zsh)"
eval "$(~/.local/bin/mise hook-env -s zsh)"
;;
esac

cat $config_file
source $config_file

mise doctor
;;
"Phoenix")
Expand Down
11 changes: 9 additions & 2 deletions test/scripts/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,15 @@ serve:
rm -f .mise.toml
rm -f .tool-versions

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

# initdb -D ~/pgdata -U postgres
# pg_ctl start -D ~/pgdata
Expand Down

0 comments on commit 7ca02b9

Please sign in to comment.