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..."