From a10832a4ec75dc3844df1ea4b1bbeceb2e4b63c4 Mon Sep 17 00:00:00 2001 From: David Runge Date: Fri, 24 Jul 2020 07:22:25 +0200 Subject: Add supported extension to ex and lstar .zsh.after/functions.zsh: Add .whl (Python wheel) as supported extension for the ex() and lstar() functions. --- .zsh.after/functions.zsh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.zsh.after/functions.zsh b/.zsh.after/functions.zsh index e00cc6c..08ede74 100644 --- a/.zsh.after/functions.zsh +++ b/.zsh.after/functions.zsh @@ -167,6 +167,9 @@ ex() { *.tgz) tar xvzf $1 ;; + *.whl) + unzip "$1" + ;; *.xz) tar xvJf $1 ;; @@ -230,6 +233,9 @@ lstar() { *.tgz) tar -tvf "$1" --force-local ;; + *.whl) + unzip -l "$1" + ;; *.xz) tar -Jtvf "$1" --force-local ;; -- cgit v1.2.3