wallix / awless

A Mighty CLI for AWS
http://awless.io/
Apache License 2.0
4.97k stars 263 forks source link

Problem with Homebrew and .zshrc #164

Closed ghost closed 6 years ago

ghost commented 6 years ago

I'm not sure if this is the place to post this, but I'll give it a shot anyway. If this is not the most suitable location, feel free to close it and remove it.

Every time you upgrade a package with Homebrew, the following line is added to ~/.zshrc

source <(awless completion zsh)

My iTerm was extremely slow and after some digging I opened ~/.zshrc to see if there was something strange in there.

It turns out that that source line was repeated about 50-60 times. Every time you run brew upgrade, that line is added a couple of times, causing things to slow down.

I know this is probably more related to Homebrew, but perhaps someone here can give some advice on how to solve this.

edit> Can be closed. Seems I misinterpreted the following line:

Or add to your ~/.zshrc $ echo 'source <(awless completion zsh)\n' >> ~/.zshrc

That shouldn't be added to your ~/.zshrc, this is to add it to that file :).

fxaguessy commented 6 years ago

Thanks for reporting. That was then a documentation issue. We fixed that in the wiki.