aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2020-07-24 07:22:25 +0200
committerDavid Runge <dave@sleepmap.de>2020-07-24 07:22:25 +0200
commita10832a4ec75dc3844df1ea4b1bbeceb2e4b63c4 (patch)
treebd51ebaed5e6858f533a39473f6bf1f505ffad87
parent21990e065442fdeba12a462bed34ae041f967238 (diff)
downloaddotfiles-a10832a4ec75dc3844df1ea4b1bbeceb2e4b63c4.tar.gz
dotfiles-a10832a4ec75dc3844df1ea4b1bbeceb2e4b63c4.tar.bz2
dotfiles-a10832a4ec75dc3844df1ea4b1bbeceb2e4b63c4.tar.xz
dotfiles-a10832a4ec75dc3844df1ea4b1bbeceb2e4b63c4.zip
Add supported extension to ex and lstar
.zsh.after/functions.zsh: Add .whl (Python wheel) as supported extension for the ex() and lstar() functions.
-rw-r--r--.zsh.after/functions.zsh6
1 files changed, 6 insertions, 0 deletions
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
;;