Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .assets/config/pwsh_cfg/profile.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ if (-not $isWSL1) {
# $env:PATH variable
@(
[IO.Path]::Combine($HOME, '.local', 'bin')
[IO.Path]::Combine($HOME, '.bun', 'bin')
[IO.Path]::Combine($HOME, '.cargo', 'bin')
[IO.Path]::Combine($HOME, '.pixi', 'bin')
) | ForEach-Object {
Expand Down
17 changes: 17 additions & 0 deletions .assets/provision/install_bun.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/usr/bin/env bash
: '
.assets/provision/install_bun.sh
'
set -euo pipefail

if [ $EUID -eq 0 ]; then
printf '\e[31;1mDo not run the script as root.\e[0m\n' >&2
exit 1
fi

if [ -x "$HOME/.bun/bin/bun" ]; then
$HOME/.bun/bin/bun upgrade
else
printf "\e[92minstalling \e[1mbun\e[22m\e[0m\n" >&2
curl -fsSL https://bun.sh/install | bash
fi
1 change: 1 addition & 0 deletions .assets/scripts/linux_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ for sc in "${scope_arr[@]}"; do
nodejs)
printf "\e[96minstalling Node.js...\e[0m\n"
sudo .assets/provision/install_nodejs.sh
.assets/provision/install_bun.sh
;;
oh_my_posh)
printf "\e[96minstalling oh-my-posh...\e[0m\n"
Expand Down
2 changes: 1 addition & 1 deletion wsl/wsl_install.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ List of installation scopes. Valid values:
- k8s_base: kubectl, kubelogin, k9s, kubecolor, kubectx, kubens
- k8s_dev: argorollouts, cilium, helm, flux, kustomize cli tools; autoselects k8s_base scope
- k8s_ext: (WSL2 only) - minikube, k3d, kind local kubernetes tools; autoselects docker, k8s_base and k8s_dev scopes
- nodejs: Node.js JavaScript runtime environment
- nodejs: Node.js JavaScript runtime environment, bun, npm
- pwsh: PowerShell Core and corresponding PS modules; autoselects shell scope
- python: uv, prek, pip, venv
- rice: btop, cmatrix, cowsay, fastfetch
Expand Down
3 changes: 2 additions & 1 deletion wsl/wsl_setup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ List of installation scopes. Valid values:
- k8s_base: kubectl, kubelogin, k9s, kubecolor, kubectx, kubens
- k8s_dev: argorollouts, cilium, helm, flux, kustomize cli tools; autoselects k8s_base scope
- k8s_ext: (WSL2 only) - minikube, k3d, kind local kubernetes tools; autoselects docker, k8s_base and k8s_dev scopes
- nodejs: Node.js JavaScript runtime environment
- nodejs: Node.js JavaScript runtime environment, bun, npm
- pwsh: PowerShell Core and corresponding PS modules; autoselects shell scope
- python: uv, prek, pip, venv
- rice: btop, cmatrix, cowsay, fastfetch
Expand Down Expand Up @@ -548,6 +548,7 @@ process {
if ($AddCertificate) {
wsl.exe --distribution $Distro --user root --exec .assets/provision/fix_nodejs_certs.sh
}
wsl.exe --distribution $Distro --exec .assets/provision/install_bun.sh
continue
}
oh_my_posh {
Expand Down