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(+) (limited to '.zsh.after') 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-54-g00ecf From 7fb9e887fd418f832829b1bdad408f39ba562955 Mon Sep 17 00:00:00 2001 From: David Runge Date: Sun, 26 Jul 2020 13:19:55 +0200 Subject: Replace use of hostname with internal .zsh.after/hostspecific.zsh: Replace the use of `hostname` with the internal HOST variable. --- .zsh.after/hostspecific.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.zsh.after') diff --git a/.zsh.after/hostspecific.zsh b/.zsh.after/hostspecific.zsh index 10c0eb0..20d569b 100644 --- a/.zsh.after/hostspecific.zsh +++ b/.zsh.after/hostspecific.zsh @@ -1,4 +1,4 @@ -case $(hostname) in +case "${HOST}" in s4|s5|c{1,2}*) . $HOME/.zsh.after/apt . $HOME/.zsh.after/unixpool -- cgit v1.2.3-54-g00ecf