curusarn / resh

RESH ❯❯ Contextual shell history for zsh and bash
MIT License
1.01k stars 19 forks source link

error: bash: bind: -X: invalid option #141

Open thisadamis opened 4 years ago

thisadamis commented 4 years ago

When I hit control r I get the following error:

bash: bind: -X: invalid option

I have bash 4.2. Any ideas why this is happening?

curusarn commented 4 years ago

Hi, I use bind -X to set up the keybindings in bash. It is a feature available in bash 4.3 an up.

What distro are you using? I chose to use the bind -X feature because even very old Ubuntu (LTS 16.04 xenial) comes with at least bash 4.3.

MacOS comes with older bash (3.2) but zsh is the default shell since Catalina so the bash version should not matter. Alternatively, newer bash can be installed using brew on MacOS.