Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

breaks on macos #1

Open
Magniquick opened this issue Oct 3, 2022 · 2 comments
Open

breaks on macos #1

Magniquick opened this issue Oct 3, 2022 · 2 comments

Comments

@Magniquick
Copy link

Hi there, this looks awesome !
however, it does break on macos :

uptime: illegal option -- p
usage: uptime
/Users/magniquick/.local/bin/diyfetch: line 38: gum: command not found
/Users/magniquick/.local/bin/diyfetch: line 48: gum: command not found
/Users/magniquick/.local/bin/diyfetch: line 52: gum: command not found
/Users/magniquick/.local/bin/diyfetch: line 84: gum: command not found
wc: illegal option -- -
usage: wc [-clmw] [file ...]
/Users/magniquick/.local/bin/diyfetch: line 73: [: : integer expression expected
wc: illegal option -- -
usage: wc [-clmw] [file ...]
/Users/magniquick/.local/bin/diyfetch: line 74: [: : integer expression expected

this is after a fresh install - no config changes
maybe something to do with macos using the bsd coreutils ?

specs -

OS: macOS 12.5 21G72 arm64
Terminal: iTerm2

P.S - could you add add instructions to install gum to the readme?

@NNBnh
Copy link
Member

NNBnh commented Oct 7, 2022

Sorry for the late reply.

I'll try to resolve this soon.

maybe something to do with macos using the bsd coreutils ?

Yeah it's probably so, uptime and wc doesn't have the requirement options.

P.S - could you add add instructions to install gum to the readme?

Sure! I'll link an installation guide on the readme.

@NNBnh
Copy link
Member

NNBnh commented Oct 7, 2022

Assuming that you already have Homebrew installed, you can run this command to install Gum:

brew install gum

And about the BSD's coreutils problem, could you install Linuxify in the meantime:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/darksonic37/linuxify/master/linuxify)" -- install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants