🦇 Batman returns with enhanced powers

- Enhanced man function opens in new window with bat + Nord theme
- Batman alias now uses enhanced man function for muscle memory
- Added license scanner utility
- Fixed shell loading to use only dotfiles versions
- Added dotfiles/bin to PATH for custom scripts
- Removed legacy .zsh loading conflicts
- Fixed bat path issue for new shell contexts

Following prime directive: respecting muscle memory while enhancing capability

🤖 Generated with Claude Code

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
David F Glidden
2025-07-28 23:34:11 +02:00
co-authored by Claude
parent 389febb161
commit 9d9c0ad241
6 changed files with 134 additions and 10 deletions
+1 -3
View File
@@ -145,9 +145,7 @@ for shell_file in "${shell_files[@]}"; do
fi
done
# Legacy support (if old files exist)
[[ -f "$HOME/.zsh/aliases.zsh" ]] && source "$HOME/.zsh/aliases.zsh"
[[ -f "$HOME/.zsh/functions.zsh" ]] && source "$HOME/.zsh/functions.zsh"
# Legacy files removed - using dotfiles versions
# ═══════════════════════════════════════════════════════════════════════════════
# CONTEXT AWARENESS
+2
View File
@@ -39,6 +39,8 @@ alias lt='eza --tree'
# view man pages with bat (replaced by enhanced man function in functions.zsh)
# alias batman='man -P "bat -l man -p"'
# Batman now uses the enhanced man function (opens in new window)
alias batman='man'
# Get macOS Software Updates, and update installed Ruby gems, Homebrew, npm, and their installed packages
alias update="read -q 'REPLY?Run full system update? (y/n) ' && echo && sysupdate || echo 'Aborted.'"
+5 -3
View File
@@ -171,12 +171,14 @@ man() {
# Build the command to run in new window
local man_cmd
if command -v bat >/dev/null; then
# Ensure we have the full path to bat for new shell contexts
local bat_path=$(which bat 2>/dev/null)
if [[ -n "$bat_path" ]]; then
# Use bat for beautiful syntax highlighting with Nord theme
man_cmd="MANPAGER='bat --language=man --style=grid --color=always --theme=Nord' man ${section:+$section} '$cmd'"
man_cmd="export PATH=\"$PATH\"; MANPAGER='$bat_path --language=man --style=grid --color=always --theme=Nord' man ${section:+$section} '$cmd'"
else
# Fallback to enhanced less
man_cmd="MANPAGER='less -R' man ${section:+$section} '$cmd'"
man_cmd="export PATH=\"$PATH\"; MANPAGER='less -R' man ${section:+$section} '$cmd'"
fi
# Terminal-specific window creation
+1
View File
@@ -12,6 +12,7 @@ fi
# Define potential paths in priority order
declare -a potential_paths=(
"$HOME/dotfiles/bin" # Dotfiles scripts
"$HOME/bin" # Personal scripts
"$HOME/.local/bin" # User-installed binaries
"/opt/homebrew/bin" # Homebrew (Apple Silicon)