Added automatic path setting to install-cosmo just recipe.
This commit is contained in:
parent
61cd6685f4
commit
90c750a6ad
1 changed files with 8 additions and 1 deletions
9
justfile
9
justfile
|
@ -29,7 +29,14 @@ install-openssl:
|
||||||
install-cosmo:
|
install-cosmo:
|
||||||
@if ! command -v cosmo &> /dev/null; then \
|
@if ! command -v cosmo &> /dev/null; then \
|
||||||
bash -c "$(curl -fsSL https://cosmonic.sh/install.sh)"; \
|
bash -c "$(curl -fsSL https://cosmonic.sh/install.sh)"; \
|
||||||
. {{scripts_dir}}/update_path.sh; \
|
current_shell=$$(basename "$$SHELL"); \
|
||||||
|
if [ "$$current_shell" == "bash" ]; then \
|
||||||
|
echo "export PATH=\"/Users/nexus/.cosmo/bin:\$$${PATH}\"" >> "${HOME}/.bashrc" && source "${HOME}/.bashrc"; \
|
||||||
|
elif [ "$$current_shell" == "zsh" ]; then \
|
||||||
|
echo "export PATH=\"/Users/nexus/.cosmo/bin:\$$${PATH}\"" >> "${HOME}/.zshrc" && source "${HOME}/.zshrc"; \
|
||||||
|
else \
|
||||||
|
echo "Unsupported shell: $$current_shell"; \
|
||||||
|
fi; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
all: install-nix install-rust install-wasm-target install-openssl install-cosmo
|
all: install-nix install-rust install-wasm-target install-openssl install-cosmo
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue