✨ Perfect man page viewer with optimal side-by-side layout

## Enhanced man function following Prime Directive principles
- **Durable**: Robust cross-terminal support (kitty/tmux/iTerm)
- **Thoughtful**: Optimal 60/40 split (~100 chars CLI, ~64 chars reading)
- **Lasting**: Clean code, proper error handling, graceful fallbacks

### Key Features
- Beautiful syntax highlighting with Nord theme
- Responsive width adaptation via MANWIDTH
- Kitty remote control with proper resize shortcuts
- Clean traditional appearance (no line numbers)
- Stays open until user dismisses

### Technical Improvements
- Uses /usr/bin/man explicitly to prevent recursion
- Proper environment detection and fallback chain
- Added kitty resize shortcuts to config
- Removed debug output for clean UX

### Files Updated
- shell/functions.zsh: Complete man() rewrite
- config/kitty/kitty.conf: Added resize shortcuts
- shell/aliases.zsh: Batman alias compatibility
- Cleanup of merged files and plugin updates

μέτρον γὰρ καὶ συμμετρία - measure, proportion, and what is fitting

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
David F Glidden
2025-07-29 21:44:41 +02:00
co-authored by Claude
parent 9d9c0ad241
commit e7bb361bd2
10 changed files with 327 additions and 403 deletions
+47
View File
@@ -0,0 +1,47 @@
# ░█▀█░█░█░█▄█
# ░█░█░▀▄▀░█░█
# ░▀░▀░░▀░░▀░▀
# Node Version Manager configuration - Simplified & Robust
# NVM directory
export NVM_DIR="${HOME}/.nvm"
# Add claude-code's specific Node version to PATH
# This ensures claude-code always works without complexity
if [[ -d "$HOME/.nvm/versions/node/v22.16.0/bin" ]]; then
export PATH="$HOME/.nvm/versions/node/v22.16.0/bin:$PATH"
fi
# Lazy load nvm for better shell startup performance
nvm() {
# Remove this function
unset -f nvm
# Load the real nvm
[ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && source "$NVM_DIR/bash_completion"
# Call nvm with the original arguments
nvm "$@"
}
# Aliases for when you need to use nvm
alias nvm-load='unset -f nvm; [ -s "$NVM_DIR/nvm.sh" ] && source "$NVM_DIR/nvm.sh"'
alias nvm-claude='nvm use 22.16.0'
alias node-homebrew='/opt/homebrew/bin/node'
alias npm-homebrew='/opt/homebrew/bin/npm'
# Quick check if we're in a project with .nvmrc
check_nvmrc() {
if [[ -f .nvmrc ]] && [[ -z "${NVM_BIN}" ]]; then
echo "📦 .nvmrc detected. Run 'nvm-load && nvm use' to switch Node version"
fi
}
# Hook to check for .nvmrc on directory change
if [[ -n "$ZSH_VERSION" ]]; then
autoload -U add-zsh-hook
add-zsh-hook chpwd check_nvmrc
# Check current directory on shell start
check_nvmrc
fi