From b769505857fd26623b2f6636feaf2fc30a0c882b Mon Sep 17 00:00:00 2001 From: Sorin Ionescu Date: Tue, 20 Aug 2013 08:46:37 -0400 Subject: [PATCH] Remove duplicate alias definitions --- modules/utility/init.zsh | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/utility/init.zsh b/modules/utility/init.zsh index 42c2675a..d2137161 100644 --- a/modules/utility/init.zsh +++ b/modules/utility/init.zsh @@ -104,15 +104,12 @@ alias sl='ls' # I often screw this up. # Mac OS X Everywhere if [[ "$OSTYPE" == darwin* ]]; then alias o='open' - alias get='curl --continue-at - --location --progress-bar --remote-name --remote-time' elif [[ "$OSTYPE" == cygwin* ]]; then alias o='cygstart' - alias get='wget --continue --progress=bar --timestamping' alias pbcopy='tee > /dev/clipboard' alias pbpaste='cat /dev/clipboard' else alias o='xdg-open' - alias get='wget --continue --progress=bar --timestamping' if (( $+commands[xclip] )); then alias pbcopy='xclip -selection clipboard -in' @@ -128,6 +125,13 @@ fi alias pbc='pbcopy' alias pbp='pbpaste' +# File Download +if (( $+commands[curl] )); then + alias get='curl --continue-at - --location --progress-bar --remote-name --remote-time' +elif (( $+commands[wget] )); then + alias get='wget --continue --progress=bar --timestamping' +fi + # Resource Usage alias df='df -kh' alias du='du -kh'