From 4c95fd94c62f38cd81418859fed31fc0786b3564 Mon Sep 17 00:00:00 2001 From: Vasyl Zuziak Date: Mon, 21 Aug 2023 10:56:10 -0700 Subject: [PATCH] Ignore user's curlrc during download (#771) By using the `-q` flag, we avoid issues from existing `.curlrc` settings, especially the `-O` option that sends output to disk instead of stdout. Since we use curl more as a plumbing tool than an interactive user command , ignoring `.curlrc` ensures consistent behavior across setups. --- functions/fisher.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/fisher.fish b/functions/fisher.fish index 833b9db..4021a83 100644 --- a/functions/fisher.fish +++ b/functions/fisher.fish @@ -98,7 +98,7 @@ function fisher --argument-names cmd --description "A plugin manager for Fish" echo Fetching (set_color --underline)\$url(set_color normal) - if command curl --silent -L \$url | command tar -xzC \$temp -f - 2>/dev/null + if command curl -q --silent -L \$url | command tar -xzC \$temp -f - 2>/dev/null command cp -Rf \$temp/*/* $source else echo fisher: Invalid plugin name or host unavailable: \\\"$plugin\\\" >&2