From 5853738c6c8547c6cd62920bbb9dc2ea5ed50a5b Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 10 Mar 2020 23:11:20 +0100 Subject: .zsh.after/functions.zsh: Adding options for *.tar.lz, and *.zst to ex() and lstar(). --- .zsh.after/functions.zsh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index 3778133..6dfefba 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -135,7 +135,7 @@ ex() { tar xvzf $1 ;; *.tar.lz) - tar xvzf $1 + tar xvf $1 ;; *.bz2) bunzip2 $1 @@ -173,6 +173,9 @@ ex() { *.zip) unzip $1 ;; + *.zst) + tar --zstd -xvf $1 + ;; *.Z) uncompress $1 ;; @@ -239,6 +242,9 @@ lstar() { *.7z) 7z l "$1" ;; + *.zst) + tar --zstd -tvf "$1" --force-local + ;; *) echo "Don't know how to look into $1" exit 1 -- cgit v1.2.3-70-g09d2