whame / tmux-modal

Execute complex tmux commands in just a few keystrokes with a modal mode that is designed to be efficient, easy to remember and comfortable
MIT License
172 stars 4 forks source link

Bash version is too old (macOS) #11

Closed tony-sol closed 1 year ago

tony-sol commented 1 year ago
ERROR: Bash version is too old. Please upgrade to version 4.0 or newer
whame commented 1 year ago

You can use tmux-modal with zsh (I do that myself). This print is telling you that your bash is too old (not your zsh). What bash version do you have? (run bash --version and also see https://github.com/whame/tmux-modal/issues/9)

tony-sol commented 1 year ago

I don't use bash, i use zsh, so BASH_VERSINFO is not set

whame commented 1 year ago

Oh, so you are saying that you don't even have bash installed at all? I'll guess that is a requirement for tmux-modal then.

However, if you get that print, it at least ran the shebang (which means that you do have bash)?

tony-sol commented 1 year ago

No, bash itself is installed, but not used at all. So thats why there are no bash-specific envs set.

It's default for macos so far, use zsh instead of bash

whame commented 1 year ago

Ok, I think I kind of understand your problem, now when you mentioned that you run macOS. You need to install a newer bash (I have never used macOS, but according to https://github.com/whame/tmux-modal/issues/9 you can install that with brew).

Note that that you can still use zsh, just need to have a newer bash installed. (We probably need to help other macOS users in the future. Should probably mention that in the README...)