zsh: Add wcurl

This commit is contained in:
PapaTutuWawa 2021-08-30 11:20:31 +02:00
parent 785e09dac1
commit 61ccf5aedd

View File

@ -35,6 +35,15 @@
bindkey "\e[3~" delete-char
'';
history.share = true;
# TODO: Maybe move this somewhere else
initExtraFirst = ''
wcurl() {
[[ -z "$1" ]] && echo "Error: No URL specified" && exit 1
local filename="$(basename $1)"
curl -fLo "$filename" "$1"
}
'';
plugins = [
{
name = "pure.zsh";