added opencode install function
This commit is contained in:
@@ -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.$$
|
||||||
|
|||||||
Reference in New Issue
Block a user