Merge pull request #718 from ravenhall/curl_aliases
Added convenience aliases for curlpull/719/head
commit
335e1774ce
|
|
@ -0,0 +1,23 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
cite 'about-alias'
|
||||||
|
about-alias 'Curl aliases for convenience.'
|
||||||
|
|
||||||
|
# set apt aliases
|
||||||
|
function _set_pkg_aliases()
|
||||||
|
{
|
||||||
|
if [ -x $(which curl) ]; then
|
||||||
|
# follow redirects
|
||||||
|
alias cl='curl -L'
|
||||||
|
# follow redirects, download as original name
|
||||||
|
alias clo='curl -L -O'
|
||||||
|
# follow redirects, download as original name, continue
|
||||||
|
alias cloc='curl -L -C - -O'
|
||||||
|
# follow redirects, download as original name, continue, retry 5 times
|
||||||
|
alias clocr='curl -L -C - -O --retry 5'
|
||||||
|
# follow redirects, fetch banner
|
||||||
|
alias clb='curl -L -I'
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
_set_pkg_aliases
|
||||||
Loading…
Reference in New Issue