From 6cc56d7929d7bf2637a375b46badc49d55c78676 Mon Sep 17 00:00:00 2001 From: alf Date: Fri, 5 Sep 2025 09:27:11 +0000 Subject: [PATCH] .bashrc aktualisiert --- .bashrc | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.bashrc b/.bashrc index 233ff1b..ab7b602 100644 --- a/.bashrc +++ b/.bashrc @@ -115,7 +115,7 @@ fi ####### Standard ######### alias ls='ls -lhp --group-directories-first --color=auto ' rm() { echo "Bitte del benutzen!"; } -7z() { echo "Bitte 7zipp benutzen!"; } +7z() { echo "Bitte 7zippadd, 7zipplist oder 7unzipp benutzen!"; } # alias ssher='/bin/bash $HOME/ssher.sh' alias sshlogin='/bin/bash "$GIT_PFAD/ssh-cert-login/login.sh"' @@ -198,11 +198,16 @@ function purge() { esac } -function 7zipp() { - if [ $1 = "l" ] then - 7z l $@ - exit 0 - fi +function 7zipadd() { read -p "Kompressionsstufe " KOMP - 7z -mhe=on -p -mx=$KOMP $@ + \7z -mhe=on -p -mx=$KOMP $@ +} + +function 7zipplist() { + \7z l $@ + +} + +function 7unzipp() { + \7z x $@ }