aliases/curl: use `_command_exists`
parent
6618457f9e
commit
88d66bbfca
|
|
@ -6,7 +6,8 @@ about-alias 'Curl aliases for convenience.'
|
||||||
# set apt aliases
|
# set apt aliases
|
||||||
function _set_pkg_aliases()
|
function _set_pkg_aliases()
|
||||||
{
|
{
|
||||||
if [ -x $(which curl) ]; then
|
if _command_exists curl
|
||||||
|
then
|
||||||
# follow redirects
|
# follow redirects
|
||||||
alias cl='curl -L'
|
alias cl='curl -L'
|
||||||
# follow redirects, download as original name
|
# follow redirects, download as original name
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue