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:
@@ -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 \
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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 ../..'
|
||||||
|
|||||||
Reference in New Issue
Block a user