Closed jaredtconnor closed 5 months ago
Hi, I believe this is due to the default bash
that ships with macOS being woefully out of date. On my MacBook Pro the defalt bash
is version 3.2. The readarray
builtin appeared in bash
version 4. To use a modern bash
on macOS you can install either the Homebrew or Macports bash
. For example (I use Homebrew):
brew install bash
Then add the path to the updated bash
prior to /bin
in your PATH
environment variable.
The lazyman
initialization process on macOS
installs Homebrew if not already installed and then installs bash
with Homebrew. So you may already have the Homebrew bash
installed but you are not picking it up because your PATH
is not set correctly. I believe Homebrew installs bash
as /opt/homebrew/bin/bash
. Can you check to see if that exists?
Finally, the Homebrew installation should add a line like the following to your ~/.zshrc
:
eval "$(/opt/homebrew/bin/brew shellenv)"
If something like that is in your ~/.zshrc
then all you need do is logout and login or source ~/.zshrc
and you should pick up the Homebrew bash
(try type bash
to see which bash
is getting picked up).
Gotcha! Perfect explanation, that seems to have been the issue. To re-iterate if anyone also runs into this error:
4
is installed: brew install bash
eval "$(/opt/homebrew/bin/brew shellenv)"
is appended onto your ~/.zshrc
file, and sourced If anyone is using bash
as their default shell with macOS, this might be of value to you.
Lastly, @doctorfree - Great work on this project, love what you have done so far, it's great.
Hey there,
So I installed Lazyman, and anytime I start it I'm getting:
The package is able to install configs it seems, but all of the functionality for reading what's installed or loaded does not work.
Environment:
Has anyone ran into this? Or have any solutions?