added opencode install function

This commit is contained in:
2026-07-13 00:21:47 -04:00
parent e0598477da
commit aeb58d45b6
+4
View File
@@ -28,6 +28,10 @@ fix_btopbg(){
sed -i 's/theme_background = true/theme_background = false/' ~/.config/btop/btop.conf sed -i 's/theme_background = true/theme_background = false/' ~/.config/btop/btop.conf
} }
install_opencode(){
curl -fsSL https://opencode.ai/install | bash
}
# Bootstrap: download and run once per bootstrap version # Bootstrap: download and run once per bootstrap version
if [[ ! -f "$ZSHRC_BOOTSTRAP" || "$(cat "$ZSHRC_BOOTSTRAP" 2>/dev/null)" != "$ZSHRC_BOOTSTRAP_VERSION" || "$BOOTSTRAP" == "true" ]]; then if [[ ! -f "$ZSHRC_BOOTSTRAP" || "$(cat "$ZSHRC_BOOTSTRAP" 2>/dev/null)" != "$ZSHRC_BOOTSTRAP_VERSION" || "$BOOTSTRAP" == "true" ]]; then
tmp=/tmp/.zshrc_bootstrap.$$ tmp=/tmp/.zshrc_bootstrap.$$