bashtop: [BUG] Not working / reporting errors when launched on Mac OS X

Hi, I’ve just cloned the repo and tried to run it without any parameters on my Mac OS X system and it prints various errors and stops:

./bashtop
./bashtop: line 33: shopt: globasciiranges: invalid shell option name
./bashtop: line 33: shopt: globstar: invalid shell option name
./bashtop: line 112: declare: -A: invalid option
declare: usage: declare [-afFirtx] [-p] [name[=value] ...]

I’m using ZSH but bash is installed (and that shouldn’t change much):

 bash --version                                                                                                                                   ─╯
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin19)
Copyright (C) 2007 Free Software Foundation, Inc.

Screenshot 2020-04-24 at 15 37 34 Screenshot 2020-04-24 at 15 39 39

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 42 (20 by maintainers)

Most upvoted comments

It’s also only supported on Linux for the moment. There will be OSX support in a couple of weeks.

Yeah, it will be using python for data collection when I’m done rewriting, so will have support for linux, bsd, osx and possibly even windows 😛

Added all fixes in v0.9.4 Hopefully everything should be in working order now 😃

And the fancy ll is in fact an alias to https://github.com/ogham/exa, see my messy ~/.zshrc.

@aristocratos can you update us on this thread upon release of mac support? ❤️

@gwarf Are you using Iterm2? And could you share the them?

Yes, I’m using iterm2. bashtop theme is Molokai, iTerm2 colors and tmux were with Nord theme by @arcticicestudio and ZSH prompt is powerlevel10k.

Extremely grateful!

Noticed i missed filtering out drives with 0 total capacity, will be fixed in next update.

Hopefully somebody who has experience in homebrew will create one, otherwise it will take a while before I get to it.

By the way with molokai theme it’s really nice, but it would be great to get a nord theme too:

Somebody started making a nord theme #116 but I don’t know if he gave up.

@gwarf @diogopublio @sudoFerraz @assoft Mac OS X support added in v0.9.0

But for sure it looks cool 😃 And also like a crazy idea to do this in bash 😉