fzf
fzf copied to clipboard
README.Debian says to source /usr/share/doc/fzf/examples/completion.bash, but file no longer exists
- [x ] I have read through the manual page (
man fzf
) - [ x] I have the latest version of fzf
- [ x] I have searched through the existing issues
Info
- OS
- [x ] Linux
- [ ] Mac OS X
- [ ] Windows
- [ ] Etc.
- Shell
- [ x] bash
- [ ] zsh
- [ ] fish
Problem / Steps to reproduce
README.Debian
says to source /usr/share/doc/fzf/examples/completion.bash
, but file no longer exists.
$ cat /usr/share/doc/fzf/README.Debian
Bash
====
Append this line to ~/.bashrc to enable fzf keybindings for Bash:
source /usr/share/doc/fzf/examples/key-bindings.bash
Note, since fzf 0.29.0-1, the bash completion is installed for bash
by default. Feel free to ignore the following instruction for fzf >= 0.29.0-1.
Append this line to ~/.bashrc to enable fuzzy auto-completion for Bash:
source /usr/share/doc/fzf/examples/completion.bash
...
9$ ls /usr/share/doc/fzf/examples/completion.bash
ls: cannot access '/usr/share/doc/fzf/examples/completion.bash': No such file or directory
I have the same bug. I paste more info:
bash: /usr/share/doc/fzf/examples/completion.bash: No such file or directory
miguel@speccy-laptop:~$
$ dpkg -l | grep fzf
ii fzf 0.30.0-1+b1 amd64 general-purpose command-line fuzzy finder
$ lsb_release --all
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux bookworm/sid
Release: testing
Codename: bookworm
$ uname -a
Linux speccy-laptop 5.17.0-1-amd64 #1 SMP PREEMPT Debian 5.17.3-1 (2022-04-18) x86_64 GNU/Linux
$ dpkg -L fzf
/.
/usr
/usr/bin
/usr/bin/fzf
/usr/bin/fzf-tmux
/usr/share
/usr/share/bash-completion
/usr/share/bash-completion/completions
/usr/share/bash-completion/completions/fzf
/usr/share/doc
/usr/share/doc/fzf
/usr/share/doc/fzf/README.Debian
/usr/share/doc/fzf/changelog.Debian.amd64.gz
/usr/share/doc/fzf/changelog.Debian.gz
/usr/share/doc/fzf/changelog.gz
/usr/share/doc/fzf/copyright
/usr/share/doc/fzf/examples
/usr/share/doc/fzf/examples/completion.zsh
/usr/share/doc/fzf/examples/fzf.vim
/usr/share/doc/fzf/examples/key-bindings.bash
/usr/share/doc/fzf/examples/key-bindings.fish
/usr/share/doc/fzf/examples/key-bindings.zsh
/usr/share/doc/fzf/examples/plugin
/usr/share/fish
/usr/share/fish/vendor_functions.d
/usr/share/fish/vendor_functions.d/fzf_key_bindings.fish
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/fzf-tmux.1.gz
/usr/share/man/man1/fzf.1.gz
/usr/share/doc/fzf/examples/plugin/fzf.vim
Yesterday its okay, but today i see the same problem. This because files in example directory its does not exist, and only have one directory plugin.
# tree /usr/share/doc/fzf/examples
/usr/share/doc/fzf/examples
└── plugin
└── fzf.vim -> ../fzf.vim
# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04 LTS
Release: 20.04
Codename: focal
And now i temporarily disable fzf plugins in my .zshrc because the message is very disturbing.
I'm not the maintainer of the Debian package. You should report the problem to the Debian package maintainers.
I think this was related 🤔 #2480 https://bugs.launchpad.net/ubuntu/+source/fzf/+bug/1928670
Isn't the solution right in the quoted text in the README.Debian
? Specifically this part:
Note, since fzf 0.29.0-1, the bash completion is installed for bash
by default. Feel free to ignore the following instruction for fzf >= 0.29.0-1.
Running $ dpkg -L fzf
shows that the completions are installed directly at: /usr/share/bash-completion/completions/fzf
.
My fzf
version:
ii fzf 0.29.0-1 amd64 general-purpose command-line fuzzy finder
The Debian documentation in /usr/share/doc/fzf/README.Debian
for version 0.30.0 is invalid : file /usr/share/doc/fzf/examples/completion.bash
no longer exists in the package. In place, FZF completions is installed by default with /usr/share/bash-completion/completions/fzf
=> no need to source it in $HOME/.bashrc
.
The issue is not a upstream one but should be reported to the Debian package maintainers https://bugs.debian.org/cgi-bin/pkgreport.cgi?repeatmerged=no&src=fzf
I just installed it in pop OS! and the completion file is in the completions
dir, but it doesn't work.
Am I missing something?
I use Debian, this is currently what is in my .bashrc
to work on Debian, but also other distros:
if [ -f /usr/share/bash-completion/completions/fzf ]; then
source /usr/share/bash-completion/completions/fzf
fi
if [ -f /usr/share/doc/fzf/examples/key-bindings.bash ]; then
source /usr/share/doc/fzf/examples/key-bindings.bash
fi
@Diablo-D3 This works for me at Ubuntu 22.04 too. Thanks!
Failed for me in Ubuntu 22.04 yesterday
I think this was related 🤔 #2480 https://bugs.launchpad.net/ubuntu/+source/fzf/+bug/1928670
I cross-referenced this issue into launchpad #2480 above