diff --git a/README.md b/README.md index 2c656c5..042c3bd 100644 --- a/README.md +++ b/README.md @@ -199,6 +199,7 @@ This helps reducing the image size. dotnet Installs latest LTS dotnet core sdk + runtime. gitea Installs gitea tools like the changelog generator. golang Installs golang 1.19.3. + bun Installs latest bun version. nodejs Installs latest NodeJs LTS version using Volta. volta Installs Volta as NodeJS version manager. powershell Installs latest PowerShell LTS version. diff --git a/arkanum b/arkanum index 7623c4e..4e5b30b 100755 --- a/arkanum +++ b/arkanum @@ -29,7 +29,8 @@ function showHelp() { docker-cli Installs the latest docker-cli. dotnet Installs latest LTS dotnet core sdk + runtime. gitea Installs gitea tools like changelog and tea. - golang Installs golang 1.19.3. + golang Installs golang 1.21.5. + bun Installs latest bun version. nodejs Installs latest NodeJs LTS version using Volta. volta Installs Volta as NodeJS version manager. powershell Installs latest PowerShell LTS version. @@ -138,6 +139,21 @@ function instGoLang() { say "Please reload bash profile to finalize." "GoLang" } +function instBun() { + say "Installing Bun requirements..." "Bun" + sudo -E apt-get update > /dev/null + sudo -E apt-get install --no-install-recommends -y \ + unzip + sudo -E apt-get clean + say "Installing Bun binaries..." "Bun" + curl -#fSL https://bun.sh/install | bash + say "Adding bun binary to profile..." "Bun" + echo 'export BUN_INSTALL=$HOME/.bun' | sudo tee -a /etc/bash.bashrc > /dev/null + echo 'export PATH=$BUN_INSTALL/bin:$PATH' | sudo tee -a /etc/bash.bashrc > /dev/null + say "done." "Bun" + say "Please reload bash profile to finalize." "Bun" +} + function instNodeJs() { say "Installing NodeJS LTS via Volta..." "NodeJS" volta install node@lts @@ -220,6 +236,7 @@ function instCodeExtension() { say "done." "Extension" } + function setCodeSettings() { CODEFILE="$HOME/data/User/settings.json" @@ -311,6 +328,8 @@ function main() { instDotNet elif [[ "$2" == "golang" ]]; then instGoLang "$3" + elif [[ "$2" == "bun" ]]; then + instBun elif [[ "$2" == "nodejs" ]]; then instVolta instNodeJs diff --git a/arkanum-completion b/arkanum-completion index 044a70c..655a4e2 100644 --- a/arkanum-completion +++ b/arkanum-completion @@ -24,7 +24,7 @@ function _command_completions() { ;; install) # shellcheck disable=2207,SC2086 - COMPREPLY=($(compgen -W "docker-cli dotnet golang nodejs volta powershell gitea" -- ${cur})) + COMPREPLY=($(compgen -W "docker-cli dotnet golang bun nodejs volta powershell gitea" -- ${cur})) ;; help) ;;