.bashrc aktualisiert
This commit is contained in:
22
.bashrc
22
.bashrc
@ -166,9 +166,17 @@ function purge() {
|
|||||||
read -p "Wirklich löschen? ja/nein/Liste/Hilfe j/n/l/h " wwahl
|
read -p "Wirklich löschen? ja/nein/Liste/Hilfe j/n/l/h " wwahl
|
||||||
case $wwahl in
|
case $wwahl in
|
||||||
"ja" | "j")
|
"ja" | "j")
|
||||||
|
read -e -i "nein" -p "Soll wirklich gelöscht werden ??? (ja/nein) " WIRKLICH
|
||||||
|
if [ "$WIRKLICH" = "ja" ]
|
||||||
|
then
|
||||||
echo "Lösche..."
|
echo "Lösche..."
|
||||||
\rm -r $TRASHVERZ
|
command rm -v -r $TRASHVERZ >>$GIT_PFAD/logger/Logs/del.log
|
||||||
echo "Fertig. ERR: $?"
|
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")
|
"nein" | "n")
|
||||||
@ -202,15 +210,25 @@ function 7zipp() {
|
|||||||
case $1 in
|
case $1 in
|
||||||
"l" | "x")
|
"l" | "x")
|
||||||
command 7z $@
|
command 7z $@
|
||||||
|
echo "--- 7z-Listing-Script by ao ---"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
"a")
|
"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 $@
|
command 7z -mhe=on -p -mx=$KOMP $@
|
||||||
|
else
|
||||||
|
command 7z -mhe=on -mx=$KOMP $@
|
||||||
|
fi
|
||||||
|
echo "--- 7z-Adding-Script by ao ---"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
*)
|
*)
|
||||||
command 7z $@
|
command 7z $@
|
||||||
|
echo "--- 7z-Script by ao ---"
|
||||||
;;
|
;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|||||||
Reference in New Issue
Block a user