update dl() details

This commit is contained in:
Jan Jastrow 2024-08-11 01:00:44 +02:00
parent ecf277ea23
commit d2415d7b5b

View File

@ -104,11 +104,11 @@ function extract () {
# Download provided url to $HOME/Downloads
function dl() {
if [ -z "$1" ]; then
echo "usage: dl url (directory)"
echo "usage: dl url --- downloads to $HOME/Downloads"
return
fi
if [[ -x $(which aria2c) ]]; then
aria2c --dir="$HOME/Downloads" --continue=true --max-connection-per-server=5 "$1"
aria2c --dir="$HOME/Downloads" --continue=true --max-connection-per-server=4 "$1"
else
(cd "$HOME/Downloads" && curl -O "$1")
fi