diff --git a/install.sh b/install.sh index bb2dd23..91d771b 100755 --- a/install.sh +++ b/install.sh @@ -39,6 +39,9 @@ install_vscode() { dist=$(detect_distro) info "Installing VS Code for distro: $dist" + export DEBIAN_FRONTEND=noninteractive + export NEEDRESTART_MODE=a + case "$dist" in ubuntu|debian|pop|mint|elementary|zorin) sudo apt-get update -qq @@ -123,6 +126,19 @@ install_node_bun() { info "Installing Bun..." curl -fsSL https://bun.sh/install | bash export PATH="$HOME/.bun/bin:$PATH" + + # Make bun available immediately and persistently + if ! grep -q '.bun/bin' ~/.bashrc 2>/dev/null; then + echo 'export PATH="$HOME/.bun/bin:$PATH"' >> ~/.bashrc + fi + if [ -f ~/.profile ] && ! grep -q '.bun/bin' ~/.profile 2>/dev/null; then + echo 'export PATH="$HOME/.bun/bin:$PATH"' >> ~/.profile + fi + if [ -d /etc/profile.d ] && [ "$EUID" -eq 0 ]; then + echo 'export PATH="/root/.bun/bin:$PATH"' > /etc/profile.d/bun.sh + chmod 644 /etc/profile.d/bun.sh + fi + ok "Bun installed: $(bun --version)" }