From a07cc041266900a51e6a7bcf83d83cce50562fb5 Mon Sep 17 00:00:00 2001 From: 1jamesthompson1 <1jamesthompson1@gmail.com> Date: Mon, 23 Mar 2026 10:03:46 +1300 Subject: [PATCH] Add opencode and dua-cli to setup.sh --- setup.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/setup.sh b/setup.sh index d4c9efa..b88b782 100644 --- a/setup.sh +++ b/setup.sh @@ -29,6 +29,20 @@ if ! command -v rustc &> /dev/null; then curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y fi +# Install opencode +echo ">>> Installing OpenCode..." +if ! command -v opencode &> /dev/null; then + curl -fsSL https://opencode.ai/install | sh +fi + +# Install dua-cli (disk usage) +echo ">>> Installing dua-cli..." +if ! command -v dua &> /dev/null; then + curl -fsSL https://github.com/Byron/dua-cli/releases/download/v*/dua-*-x86_64-unknown-linux-gnu.tar.gz | tar -xz -C /tmp + sudo mv /tmp/dua-*/dua /usr/local/bin/ + rm -rf /tmp/dua-* +fi + # 2. Clone your dotfiles (bare repo style) if [ ! -d "$HOME/.dotfiles" ]; then echo ">>> Cloning dotfiles repo..."