22 lines
591 B
Bash
22 lines
591 B
Bash
fix_btopbg(){
|
|
sed -i 's/theme_background = true/theme_background = false/' ~/.config/btop/btop.conf
|
|
}
|
|
|
|
install_opencode(){
|
|
curl -fsSL https://opencode.ai/install | bash
|
|
}
|
|
|
|
update_repo() {
|
|
local REPO_URL="https://git.jeremymcclure.com/jeremy/dotstate-storage.git"
|
|
local TARGET_DIR="$HOME/.config/dotstate/storage"
|
|
|
|
if [[ -d "$TARGET_DIR/.git" ]]; then
|
|
info "Repository exists. Pulling updates..."
|
|
git -C "$TARGET_DIR" pull &>/dev/null
|
|
else
|
|
info "Repository not found. Cloning..."
|
|
git clone --depth=1 "$REPO_URL" "$TARGET_DIR" &>/dev/null
|
|
fi
|
|
|
|
exec zsh
|
|
} |