Skip to content

Instantly share code, notes, and snippets.

@taking
Created July 18, 2024 05:02
Show Gist options
  • Save taking/e7285a49795b268df207378ea749c49f to your computer and use it in GitHub Desktop.
Save taking/e7285a49795b268df207378ea749c49f to your computer and use it in GitHub Desktop.
#!/bin/bash
# Install oh-my-zsh from container image
curl -fsSL https://raw.githubusercontent.com/taking/taking/main/mySettings/scripts/ohmyzsh_install.sh | bash
# Function to install Python (placeholder)
install_python() {
echo "Python installation is not defined in this script."
}
# Function to install Go
install_go() {
curl -fsSL https://raw.githubusercontent.com/taking/taking/main/mySettings/scripts/go_install.sh | bash
go install -v golang.org/x/tools/gopls@latest
}
# Function to install Rust
install_rust() {
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
}
# Function to install Java
install_java() {
curl -fsSL https://raw.githubusercontent.com/taking/taking/main/mySettings/scripts/java21_install.sh | bash
}
# Function to install Node.js
install_node() {
curl -fsSL https://raw.githubusercontent.com/tj/n/master/bin/n | bash -s 20.15.1
}
# Install language from container image
case "${data.coder_parameter.language.value}" in
"python")
install_python
;;
"go")
install_go
;;
"rust")
install_rust
;;
"java")
install_java
;;
"node")
install_node
;;
*)
echo "Unsupported language: ${data.coder_parameter.language.value}"
;;
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment