MINGW64 curl 默认设置静默模式

MINGW64 curl set silent mode by default

我正在使用 curl(windows 中的 MINGW64)来测试 elasticsearch。 它总是输出像

$ curl 'localhost:9200/_cat/indices?v'
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100    79  100    79    0     0   4937      0 --:--:-- --:--:-- --:--:--  4937health status index pri rep docs.count docs.deleted store.size pri.store.size

我必须打字

$ curl 'localhost:9200/_cat/indices?v' --silent
health status index pri rep docs.count docs.deleted store.size pri.store.size

如何让curl默认进入静默模式?

好的,我在按关键字 ubuntu curl 搜索时发现了魔法。 很简单,就是运行

alias 'curl'='curl -s'

然后 curl 默认处于静音模式。