-1

I see pacman has this option

--noprogressbar  do not show a progress bar when downloading files

That applies to pacman -S pacman -R pacman -U. However I would like to always use this option when appropriate. Is that possible?

Zombo
  • 1
  • 62
  • 391
  • 407

1 Answers1

1

Just put a function in one of your bash files. Something like

pacman() {
  [[ $@ =~ -[RSU] ]] && set -- "$@" --noprogressbar
  command pacman "$@"
}
Zombo
  • 1
  • 62
  • 391
  • 407
Reinstate Monica Please
  • 11,123
  • 3
  • 27
  • 48
  • Just to be clear, this will append `--noprogressbar` any time any of the arguments contains `-R`, `-S`, or `-U`. It will misbehave if the `-S` option is not specified as `-S` (for example, if `--sync` is used, or if `-yS` is used (not sure if pacman supports that last one)). It will also misbehave if any of the non-options happen to contain `-S`, as a package name might, even though Arch don't seem to do that themselves. –  Feb 09 '14 at 16:12