- Added comprehensive configuration files for seamless migration - SSH, GPG, Karabiner, iTerm2, Neofetch, SwiftBar configs - Pass license management system with templates and documentation - Enhanced shell functions with MAS updates and moon phase tracking - Comprehensive encrypted backup system (GPG AES256) - Included encrypted backups of all sensitive data - BBEdit as default editor with proper configuration - Fixed shell compatibility issues - Merged existing .zsh configs with improvements Security: - All sensitive data is GPG encrypted (.gpg files) - Private keys excluded from version control - Only configs and encrypted backups are tracked Following prime directive: durable, thoughtful solutions 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
64 lines
2.3 KiB
Bash
64 lines
2.3 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/animal-davidglidden-eu"
|
|
export WORK_PATH="$HOME/Documents/GitHub/davidglidden.github.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
|
|
"$WORK_PATH"*) export CURRENT_CONTEXT="work" ;;
|
|
"$CHAMBER_PATH"*) export CURRENT_CONTEXT="chamber" ;;
|
|
"$VAULT_PATH"*) export CURRENT_CONTEXT="vault" ;;
|
|
"$DOTFILES_PATH"*) export CURRENT_CONTEXT="dotfiles" ;;
|
|
*) export CURRENT_CONTEXT="personal" ;;
|
|
esac
|
|
} |