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

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

Open
thisadamis opened this issue May 18, 2020 · 1 comment
Open

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

thisadamis opened this issue May 18, 2020 · 1 comment

Comments

@thisadamis
Copy link

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
Copy link
Owner

curusarn commented Jun 2, 2020

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.

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

No branches or pull requests

2 participants