From 6588da4ad645cd00683a111aecb2992d22a8455a Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Mon, 18 Nov 2024 16:43:42 +0100 Subject: [PATCH] tar --- sh/alias/tar.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/sh/alias/tar.sh b/sh/alias/tar.sh index bfbf7be..6da0d03 100644 --- a/sh/alias/tar.sh +++ b/sh/alias/tar.sh @@ -1,26 +1,30 @@ -tc() { - tv \ +tc() { sh_a__tar_create "${@}"; } +sh_a__tar_create() { + sh_a__tar_verbose \ --create \ --auto-compress \ --file \ "${@}" } -tl() { - tv \ +tl() { sh_a__tar_list "${@}"; } +sh_a__tar_list() { + sh_a__tar_verbose \ --list \ --file \ "${@}" } -tv() { +tv() { sh_a__tar_verbose "${@}"; } +sh_a__tar_verbose() { tar \ --verbose \ "${@}" } -tx() { - tv \ +tx() { sh_a__tar_xtract "${@}"; } +sh_a__tar_xtract() { + sh_a__tar_verbose \ --extract \ --file \ "${@}"