diff --git a/shell/alias/tar.sh b/shell/alias/tar.sh index 74b5020..bfbf7be 100644 --- a/shell/alias/tar.sh +++ b/shell/alias/tar.sh @@ -1,21 +1,27 @@ -alias tc="\ -tar \ ---verbose \ ---create \ ---auto-compress \ ---file \ -" +tc() { + tv \ + --create \ + --auto-compress \ + --file \ + "${@}" +} -alias tl="\ -tar \ ---verbose \ ---list \ ---file \ -" +tl() { + tv \ + --list \ + --file \ + "${@}" +} -alias tx="\ -tar \ ---verbose \ ---extract \ ---file \ -" +tv() { + tar \ + --verbose \ + "${@}" +} + +tx() { + tv \ + --extract \ + --file \ + "${@}" +}