🦇 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:
co-authored by
Claude
parent
389febb161
commit
9d9c0ad241
+1
-3
@@ -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
|
||||
|
||||
@@ -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
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user