Files
dotfiles/scripts/diagnose-shell.sh
T
David F GliddenandClaude 389febb161 🚀 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>
2025-07-28 23:10:36 +02:00

48 lines
1.4 KiB
Bash
Executable File

#!/usr/bin/env bash
# Shell configuration diagnostic tool
# Following the prime directive: understand before fixing
set -euo pipefail
echo "🔍 Shell Configuration Diagnostic"
echo "=================================="
echo "1. Current shell: $SHELL"
echo "2. Zsh version: $(zsh --version)"
echo ""
echo "3. Checking for conflicting aliases:"
alias | grep -E "(cd=|chamber=)" || echo " No cd/chamber aliases found"
echo ""
echo "4. Testing functions.zsh syntax:"
if zsh -n ~/dotfiles/shell/functions.zsh; then
echo " ✅ Syntax is valid"
else
echo " ❌ Syntax error found"
fi
echo ""
echo "5. Testing incremental loading:"
echo " Loading environment.zsh..."
source ~/dotfiles/shell/environment.zsh && echo " ✅ OK" || echo " ❌ FAILED"
echo " Loading paths.zsh..."
source ~/dotfiles/shell/paths.zsh && echo " ✅ OK" || echo " ❌ FAILED"
echo " Loading functions.zsh..."
if source ~/dotfiles/shell/functions.zsh 2>&1 | head -1; then
echo " ✅ OK"
else
echo " ❌ FAILED - this is where the issue occurs"
fi
echo ""
echo "6. Checking for hidden characters around line 311:"
sed -n '310,312p' ~/dotfiles/shell/functions.zsh | cat -A
echo ""
echo "🎯 Recommended next steps:"
echo " - If syntax is clean, the issue is environmental"
echo " - Check what aliases exist before functions.zsh loads"
echo " - Consider isolation: load functions in clean shell"