diff options
Diffstat (limited to '.zsh.after')
-rw-r--r-- | .zsh.after/functions.zsh | 6 | ||||
-rw-r--r-- | .zsh.after/hostspecific.zsh | 2 |
2 files changed, 7 insertions, 1 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 ;; 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 |