junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
63.4k stars 2.36k forks source link

After updating fzf - I get an error: .bashrc: unknown option: --bash - .zshrc: unknown option: --zsh #3703

Closed jkemp814 closed 5 months ago

jkemp814 commented 5 months ago

Checklist

Output of fzf --version

0.38.0 (debian)

OS

Shell

Problem / Steps to reproduce

Open a terminal. Throws error in both Bash and ZSH.

Opening .fzf.bash and .fzf.zsh show line: 7 eval "$(fzf --bash)" eval "$(fzf --zsh)"

Both shells have a problem with those eval lines.

The same error occurs on my Fedora Linux 39 Silverblue machines also. Not just this Debian machine. (MX Linux 23.2)

LangLangBart commented 5 months ago

0.38.0 (debian)

Could you try version 0.48.0[^1][^2] or later? [^1]: fzf/CHANGELOG.md at master · junegunn/fzf · GitHub [^2]: README.md - Setting up shell integration · junegunn/fzf

jkemp814 commented 5 months ago

I pulled using Git. How do I get the 0.48.1 version? I did notice fzf --version shows 0.38.0

jkemp814 commented 5 months ago

Okay, I got it and that fixed it. Thanks for the help.

I had to purge the old one.

jkemp814 commented 5 months ago

@LangLangBart

Thanks for the help.