Skip to content

Instantly share code, notes, and snippets.

@smujohnson
Created October 4, 2012 18:44
Show Gist options
  • Save smujohnson/3835570 to your computer and use it in GitHub Desktop.
Save smujohnson/3835570 to your computer and use it in GitHub Desktop.
# new and improved!
#
# N.B.: how I felt about legacy tar syntax: http://i.imgur.com/fsZI0.jpg
tar () {
local main_arg="$1"
if [ "${main_arg:0:1}" != "-" ] ; then
main_arg="-$main_arg"
fi
/bin/tar -a "$main_arg" -v -f "${@:2}"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment