Files
dotstate-storage/default/.config/zsh/functions.zsh
T
2026-08-01 15:14:09 -04:00

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
}