Add Install > Development for setting up Rails and other mise options
This commit is contained in:
parent
1484cbb7d7
commit
06345c7e25
46
bin/omarchy-install-dev-env
Executable file
46
bin/omarchy-install-dev-env
Executable file
@ -0,0 +1,46 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
if [[ -z "$1" ]]; then
|
||||||
|
echo "Usage: omarchy-instal-dev-env <ruby|node|go|laravel|python|elixir|rust|java>" >&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
ruby)
|
||||||
|
echo -e "Installing Ruby on Rails...\n"
|
||||||
|
mise use --global ruby@latest
|
||||||
|
mise settings add idiomatic_version_file_enable_tools ruby
|
||||||
|
mise x ruby -- gem install rails --no-document
|
||||||
|
;;
|
||||||
|
node)
|
||||||
|
echo -e "Installing Node.js...\n"
|
||||||
|
mise use --global node@lts
|
||||||
|
;;
|
||||||
|
go)
|
||||||
|
echo -e "Installing Go...\n"
|
||||||
|
mise use --global go@latest
|
||||||
|
;;
|
||||||
|
laravel)
|
||||||
|
echo -e "Need help figuring this out!\n"
|
||||||
|
;;
|
||||||
|
python)
|
||||||
|
echo -e "Installing Python...\n"
|
||||||
|
mise use --global python@latest
|
||||||
|
echo -e "\nInstalling uv...\n"
|
||||||
|
wget -qO- https://astral.sh/uv/install.sh | sh
|
||||||
|
;;
|
||||||
|
elixir)
|
||||||
|
echo -e "Installing Elixir...\n"
|
||||||
|
mise use --global erlang@latest
|
||||||
|
mise use --global elixir@latest
|
||||||
|
mise x elixir -- mix local.hex --force
|
||||||
|
;;
|
||||||
|
rust)
|
||||||
|
echo -e "Installing Rust...\n"
|
||||||
|
bash -c "$(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs)" -- -y
|
||||||
|
;;
|
||||||
|
java)
|
||||||
|
echo -e "Installing Java...\n"
|
||||||
|
mise use --global java@latest
|
||||||
|
;;
|
||||||
|
esac
|
@ -171,14 +171,14 @@ show_setup_config_menu() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
show_install_menu() {
|
show_install_menu() {
|
||||||
case $(menu "Install" " Package\n Web App\n Service\n Style\n Editor\n AI\n Docker DB") in
|
case $(menu "Install" " Package\n Web App\n Service\n Style\n Development\n Editor\n AI") in
|
||||||
*Package*) terminal $OMARCHY_BIN_PATH/omarchy-pkg-install ;;
|
*Package*) terminal $OMARCHY_BIN_PATH/omarchy-pkg-install ;;
|
||||||
*Web*) present_terminal $OMARCHY_BIN_PATH/omarchy-webapp-install ;;
|
*Web*) present_terminal $OMARCHY_BIN_PATH/omarchy-webapp-install ;;
|
||||||
*Service*) show_install_service_menu ;;
|
*Service*) show_install_service_menu ;;
|
||||||
*Style*) show_install_style_menu ;;
|
*Style*) show_install_style_menu ;;
|
||||||
|
*Development*) show_install_development_menu ;;
|
||||||
*Editor*) show_install_editor_menu ;;
|
*Editor*) show_install_editor_menu ;;
|
||||||
*AI*) show_install_ai_menu ;;
|
*AI*) show_install_ai_menu ;;
|
||||||
*Docker*) present_terminal $OMARCHY_BIN_PATH/omarchy-install-docker-dbs ;;
|
|
||||||
*) show_main_menu ;;
|
*) show_main_menu ;;
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@ -234,6 +234,19 @@ show_install_font_menu() {
|
|||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
|
|
||||||
|
show_install_development_menu() {
|
||||||
|
case $(menu "Install" " Ruby on Rails\n Docker DB\n Node.js\n Go\n Laravel\n Python\n Elixir") in
|
||||||
|
*Rails*) present_terminal "$OMARCHY_BIN_PATH/omarchy-install-dev-env ruby" ;;
|
||||||
|
*Docker*) present_terminal $OMARCHY_BIN_PATH/omarchy-install-docker-dbs ;;
|
||||||
|
*Node*) present_terminal "$OMARCHY_BIN_PATH/omarchy-install-dev-env node" ;;
|
||||||
|
*Go*) present_terminal "$OMARCHY_BIN_PATH/omarchy-install-dev-env go" ;;
|
||||||
|
*Laravel*) present_terminal "$OMARCHY_BIN_PATH/omarchy-install-dev-env laravel" ;;
|
||||||
|
*Python*) present_terminal "$OMARCHY_BIN_PATH/omarchy-install-dev-env python" ;;
|
||||||
|
*Elixir*) present_terminal "$OMARCHY_BIN_PATH/omarchy-install-dev-env elixir" ;;
|
||||||
|
*) show_install_menu ;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
show_remove_menu() {
|
show_remove_menu() {
|
||||||
case $(menu "Remove" " Package\n Web App\n Theme\n Fingerprint\n Fido2") in
|
case $(menu "Remove" " Package\n Web App\n Theme\n Fingerprint\n Fido2") in
|
||||||
*Package*) terminal $OMARCHY_BIN_PATH/omarchy-pkg-remove ;;
|
*Package*) terminal $OMARCHY_BIN_PATH/omarchy-pkg-remove ;;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user