diff options
Diffstat (limited to 'posix-shell/utils.sh')
-rw-r--r-- | posix-shell/utils.sh | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/posix-shell/utils.sh b/posix-shell/utils.sh index 596263e..b1ffc21 100644 --- a/posix-shell/utils.sh +++ b/posix-shell/utils.sh @@ -216,3 +216,12 @@ url() { # open selected URL in browser firefox "${url}" } + +lar() { + temp="$(mktemp -d)" + tar -xf "$1" -C "$temp" + pushd "$temp" + lf + popd + rm -rf "$temp" +} |