.bashrc aktualisiert

This commit is contained in:
alf
2025-09-05 11:33:02 +00:00
parent 29a86c4edf
commit 1721dfb6ca

22
.bashrc
View File

@ -166,9 +166,17 @@ function purge() {
read -p "Wirklich löschen? ja/nein/Liste/Hilfe j/n/l/h " wwahl
case $wwahl in
"ja" | "j")
read -e -i "nein" -p "Soll wirklich gelöscht werden ??? (ja/nein) " WIRKLICH
if [ "$WIRKLICH" = "ja" ]
then
echo "Lösche..."
\rm -r $TRASHVERZ
command rm -v -r $TRASHVERZ >>$GIT_PFAD/logger/Logs/del.log
echo "Fertig. ERR: $?"
echo "Liste der gelöschten Dateien: $GIT_PFAD/logger/Logs/del.log"
mkdir -p $TRASHVERZ
else
echo "Es wird nichts gelöscht!"
fi
;;
"nein" | "n")
@ -202,15 +210,25 @@ function 7zipp() {
case $1 in
"l" | "x")
command 7z $@
echo "--- 7z-Listing-Script by ao ---"
;;
"a")
read -p "Kompressionsstufe " KOMP
read -e -i "5" -p "Kompressionsstufe " KOMP
read -e -i "j" -p "Verschlüsseln (J/n) " VERSCH
if [ "$VERSCH" = "j" ]
then
command 7z -mhe=on -p -mx=$KOMP $@
else
command 7z -mhe=on -mx=$KOMP $@
fi
echo "--- 7z-Adding-Script by ao ---"
;;
*)
command 7z $@
echo "--- 7z-Script by ao ---"
;;
esac