Skip to content

Commit

Permalink
Ignore user's curlrc during download (#771)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ZuBB authored Aug 21, 2023
1 parent 59228d6 commit 4c95fd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion functions/fisher.fish
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4c95fd9

Please sign in to comment.