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