obsidian_kitty_setup/uninstall.sh
Vadym Samoilenko d31fbf9c99 Initial dotfiles setup — Kitty + Obsidian logging system
- GNU Stow packages: kitty, fish, nvim, btop, fastfetch, starship, git, claude
- install.sh with modular install, template rendering, fish plugins setup
- uninstall.sh (stow -D) and scripts/doctor.sh for health checks
- Brewfile (macOS) + Aptfile (Linux servers)
- Claude Code hooks pipeline: settings.json.tpl, Obsidian session logging scripts
- memory-compiler inline copy with env-var-based paths
- Python scripts patched: os.environ.get() for OBSIDIAN_VAULT + PROJECTS_ROOT
- fish/config.fish: platform-aware Homebrew PATH (macOS + Linuxbrew)
- .env.example template for ~/.dotfiles.env

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-16 12:57:30 +01:00

25 lines
716 B
Bash
Executable file

#!/usr/bin/env bash
# uninstall.sh — Remove dotfiles symlinks (does NOT delete config files from repo)
#
# Usage:
# ./uninstall.sh # Unstow all packages
# ./uninstall.sh kitty fish # Unstow specific packages
set -euo pipefail
REPO_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
source "$REPO_DIR/lib/helpers.sh"
source "$REPO_DIR/lib/stow.sh"
MODULES=("$@")
ALL_MODULES=(kitty fish nvim btop fastfetch starship git claude)
[[ ${#MODULES[@]} -eq 0 ]] && MODULES=("${ALL_MODULES[@]}")
ensure_stow
step "Removing symlinks for: ${MODULES[*]}"
for mod in "${MODULES[@]}"; do
unstow_package "$REPO_DIR" "$mod"
done
success "Symlinks removed. Config files remain in the repo at $REPO_DIR"