aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2020-03-10 23:11:20 +0100
committerDavid Runge <dave@sleepmap.de>2020-03-10 23:11:20 +0100
commit5853738c6c8547c6cd62920bbb9dc2ea5ed50a5b (patch)
tree2fbc96e6351d1b5a3afe5bf73f6693e681403297
parentea44295da8e6c0ef3182a3a77883c8812304ef4e (diff)
downloaddotfiles-5853738c6c8547c6cd62920bbb9dc2ea5ed50a5b.tar.gz
dotfiles-5853738c6c8547c6cd62920bbb9dc2ea5ed50a5b.tar.bz2
dotfiles-5853738c6c8547c6cd62920bbb9dc2ea5ed50a5b.tar.xz
dotfiles-5853738c6c8547c6cd62920bbb9dc2ea5ed50a5b.zip
.zsh.after/functions.zsh: Adding options for *.tar.lz, and *.zst to ex() and lstar().
-rw-r--r--.zsh.after/functions.zsh8
1 files changed, 7 insertions, 1 deletions
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