Fix zsh alias error and sync packages across Dockerfiles

Fixed zsh configuration:
- Fixed '?' alias that was causing 'no matches found' error in zsh
- Added proper bat alias (bat → batcat on Ubuntu)
- Added conditional alias handling for different shells

Synchronized packages across Dockerfiles:
- Added bat, mpack, pandoc to Dockerfile.scratch
- Enhanced package cleanup in Dockerfile.scratch
- Both Dockerfiles now have identical package lists

New packages available:
- bat (as batcat) - syntax-highlighted cat alternative
- mpack - MIME email utilities
- pandoc - document converter

All shells (bash, zsh, fish) now work without errors!
This commit is contained in:
Tobias Kessels
2025-10-01 15:24:46 +02:00
parent f72e194300
commit 6e1c77813c
3 changed files with 15 additions and 2 deletions

View File

@@ -100,11 +100,18 @@ alias egrep='egrep --color=auto'
# Tool aliases
alias fd='fdfind'
alias bat='batcat' # Ubuntu names it batcat
alias rg='rg --color=auto'
alias analyse='fhelp'
alias ?='fhelp'
alias help='fhelp'
# Help alias (? needs special handling in zsh)
if [[ -n "$ZSH_VERSION" ]]; then
alias \?='fhelp'
else
alias '?'='fhelp'
fi
# Quick navigation
alias ..='cd ..'
alias ...='cd ../..'