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

@@ -8,6 +8,7 @@ ENV TZ=Europe/Berlin
# Install additional system packages that REMnux doesn't include # Install additional system packages that REMnux doesn't include
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
busybox \ busybox \
bat \
catdoc \ catdoc \
docx2txt \ docx2txt \
fd-find \ fd-find \
@@ -17,6 +18,8 @@ RUN apt-get update && apt-get install -y \
pipx \ pipx \
ripgrep \ ripgrep \
unrtf \ unrtf \
mpack \
pandoc \
zsh \ zsh \
zsh-autosuggestions \ zsh-autosuggestions \
zsh-syntax-highlighting \ zsh-syntax-highlighting \

View File

@@ -31,6 +31,7 @@ ENV TZ=Europe/Berlin
# Install additional system packages that REMnux doesn't include # Install additional system packages that REMnux doesn't include
RUN apt-get update && apt-get install -y \ RUN apt-get update && apt-get install -y \
busybox \ busybox \
bat \
catdoc \ catdoc \
docx2txt \ docx2txt \
fd-find \ fd-find \
@@ -40,10 +41,12 @@ RUN apt-get update && apt-get install -y \
pipx \ pipx \
ripgrep \ ripgrep \
unrtf \ unrtf \
mpack \
pandoc \
zsh \ zsh \
zsh-autosuggestions \ zsh-autosuggestions \
zsh-syntax-highlighting \ zsh-syntax-highlighting \
&& rm -rf /var/lib/apt/lists/* && apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# Configure pip # Configure pip
ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONDONTWRITEBYTECODE=1

View File

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