🚀 Complete machine migration setup with encrypted backups
- 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>
This commit is contained in:
co-authored by
Claude
parent
a0e34f78ae
commit
389febb161
+18
-6
@@ -53,13 +53,25 @@ link_file "$DOTFILES_DIR/.npmrc" "$HOME/.npmrc"
|
||||
# Link plugin manifest
|
||||
link_file "$DOTFILES_DIR/shell/.zsh-plugins.txt" "$HOME/.zsh-plugins.txt"
|
||||
|
||||
# SSH config (template only - user must customize)
|
||||
if [ -f "$DOTFILES_DIR/ssh/config.example" ] && [ ! -f "$HOME/.ssh/config" ]; then
|
||||
echo -e "${YELLOW}Creating SSH config from template...${NC}"
|
||||
# SSH config
|
||||
echo -e "${YELLOW}Setting up SSH configuration...${NC}"
|
||||
if [ -f "$DOTFILES_DIR/ssh/config" ]; then
|
||||
mkdir -p "$HOME/.ssh"
|
||||
cp "$DOTFILES_DIR/ssh/config.example" "$HOME/.ssh/config"
|
||||
link_file "$DOTFILES_DIR/ssh/config" "$HOME/.ssh/config"
|
||||
chmod 600 "$HOME/.ssh/config"
|
||||
echo -e "${YELLOW}⚠ Edit ~/.ssh/config with your actual values${NC}"
|
||||
fi
|
||||
|
||||
# GPG configuration
|
||||
echo -e "${YELLOW}Setting up GPG configuration...${NC}"
|
||||
if [ -d "$DOTFILES_DIR/gnupg" ]; then
|
||||
mkdir -p "$HOME/.gnupg"
|
||||
chmod 700 "$HOME/.gnupg"
|
||||
for gpg_file in gpg.conf gpg-agent.conf dirmngr.conf; do
|
||||
if [ -f "$DOTFILES_DIR/gnupg/$gpg_file" ]; then
|
||||
link_file "$DOTFILES_DIR/gnupg/$gpg_file" "$HOME/.gnupg/$gpg_file"
|
||||
chmod 600 "$HOME/.gnupg/$gpg_file"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
# Config directories
|
||||
@@ -67,7 +79,7 @@ echo -e "${YELLOW}Linking config directories...${NC}"
|
||||
mkdir -p "$HOME/.config"
|
||||
|
||||
# Link config subdirectories if they exist
|
||||
for config_dir in git iterm2 kitty karabiner; do
|
||||
for config_dir in git iterm2 kitty karabiner neofetch swiftbar; do
|
||||
if [ -d "$DOTFILES_DIR/config/$config_dir" ]; then
|
||||
link_file "$DOTFILES_DIR/config/$config_dir" "$HOME/.config/$config_dir"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user