Created
July 18, 2024 05:02
-
-
Save taking/e7285a49795b268df207378ea749c49f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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