Files
dotfiles/shell/environment.zsh
T
David F GliddenandClaude Opus 4.6 066a47a26b Audit and optimize for CapableMind development
Brewfile: stripped to essential tools (~600MB freed), removed boost,
cmake, aerc, newsboat, fontforge, starship, and 24 auto-dependencies.
Added caffeine, ollama, fastfetch, ocrmypdf, tea, sshpass, vitetris.
Dropped 1password, iterm2, github-desktop, hazel, swiftbar, oversight.

Shell: fixed all stale references (fzf, zoxide, starship, old paths,
Homebrew node aliases). Updated project paths to ~/_Dev/. Added
CapableMind aliases (cm, bmf, bmf-health, bmf-status, bmf-logs).

Configs: removed iterm2, neofetch, swiftbar configs. Added capablemind
(launchd plists, MCP example, bmf-start script). Updated SSH config
with git.skemantix.com. Added CLAUDE.md to dotfiles.

Scripts: consolidated 3 backup scripts into 1 (backup-all-secrets.sh),
added pass store backup. Added setup-capablemind.sh for full environment
reconstruction. Updated symlinks.sh for new config structure.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-20 23:45:33 +01:00

68 lines
2.5 KiB
Bash

# ░█▀▀░█▀█░█░█░▀█▀░█▀▄░█▀█░█▀█░█▄█░█▀▀░█▀█░▀█▀
# ░█▀▀░█░█░▀▄▀░░█░░█▀▄░█░█░█░█░█░█░█▀▀░█░█░░█░
# ░▀▀▀░▀░▀░░▀░░▀▀▀░▀░▀░▀▀▀░▀░▀░▀░▀░▀▀▀░▀░▀░░▀░
# Core environment variables with graceful fallbacks
# 🖋 Preferred editors
export EDITOR="bbedit -w"
export VISUAL="bbedit -w"
# 🌍 Locale settings
export LANG="${LANG:-en_US.UTF-8}"
export LC_ALL="${LC_ALL:-en_US.UTF-8}"
# 🗂 History configuration
export HISTFILE="${HISTFILE:-$HOME/.zsh_history}"
export HISTSIZE=100000
export SAVEHIST=100000
# 🧠 XDG Base Directory specification
export XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}"
export XDG_DATA_HOME="${XDG_DATA_HOME:-$HOME/.local/share}"
export XDG_CACHE_HOME="${XDG_CACHE_HOME:-$HOME/.cache}"
export XDG_STATE_HOME="${XDG_STATE_HOME:-$HOME/.local/state}"
# 📚 Vault and workspace paths
export VAULT_PATH="$HOME/Library/Mobile Documents/iCloud~md~obsidian/Documents/David, root-and-branch"
export CHAMBER_PATH="$HOME/_Dev/chamber-library"
export ARC_PATH="$HOME/_Dev/animal-davidglidden-eu"
export CAPABLEMIND_PATH="$HOME/_Dev/CapableMind-AI"
export BMF_PATH="$HOME/_Dev/BetterMemories.io"
export DOTFILES_PATH="$HOME/dotfiles"
# 🔧 Tool configurations
export HOMEBREW_NO_ANALYTICS=1
export HOMEBREW_NO_INSECURE_REDIRECT=1
export HOMEBREW_CASK_OPTS="--require-sha"
# 🎨 Color and display
export CLICOLOR=1
export LSCOLORS="ExGxBxDxCxEgEdxbxgxcxd"
export GREP_OPTIONS="--color=auto"
# 🐍 Python settings
export PYTHONDONTWRITEBYTECODE=1
export PYTHONUNBUFFERED=1
# 📊 Performance monitoring
export TIMEFMT=$'\n================\nCPU\t%P\nuser\t%*U\nsystem\t%*S\ntotal\t%*E'
# 🌓 Optional API keys (with existence checks)
[[ -f "$HOME/.env.local" ]] && source "$HOME/.env.local"
# 🔐 Security
export GPG_TTY=$(tty)
# 🚀 Development context detection
detect_context() {
case "$PWD" in
"$BMF_PATH"*) export CURRENT_CONTEXT="capablemind" ;;
"$CAPABLEMIND_PATH"*) export CURRENT_CONTEXT="capablemind" ;;
"$ARC_PATH"*) export CURRENT_CONTEXT="arc" ;;
"$CHAMBER_PATH"*) export CURRENT_CONTEXT="chamber" ;;
"$VAULT_PATH"*) export CURRENT_CONTEXT="vault" ;;
"$DOTFILES_PATH"*) export CURRENT_CONTEXT="dotfiles" ;;
*) export CURRENT_CONTEXT="personal" ;;
esac
}