Add opencode and dua-cli to setup.sh

This commit is contained in:
1jamesthompson1
2026-03-23 10:03:46 +13:00
parent a7769087a9
commit a07cc04126

View File

@@ -29,6 +29,20 @@ if ! command -v rustc &> /dev/null; then
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
fi 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) # 2. Clone your dotfiles (bare repo style)
if [ ! -d "$HOME/.dotfiles" ]; then if [ ! -d "$HOME/.dotfiles" ]; then
echo ">>> Cloning dotfiles repo..." echo ">>> Cloning dotfiles repo..."