diff --git a/.bashrc b/.bashrc index be6c8bd..cc62dcc 100644 --- a/.bashrc +++ b/.bashrc @@ -199,11 +199,19 @@ function purge() { } function 7zipp() { - if [ $1 = "l" ] - then + case $1 in + "l" | "x") command 7z $@ - else + ;; + + "a") read -p "Kompressionsstufe " KOMP command 7z -mhe=on -p -mx=$KOMP $@ - fi + ;; + + *) + command 7z $@ + ;; + + esac }