fzf integration: failed to find "fzf" base directory #441
-
I am trying to use When I create source /etc/profile.d/bash_completion.sh
# /home/matej/.local/share/blesh/contrib/integration/fzf-completion.bash
ble-import -d integration/fzf-completion
ble-import -d integration/fzf-key-bindings I get these errors on loading of the shell (using the secure method of starting ble.sh):
I can run
Any ideas, what do I do wrong? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
The module
If you can run that on the command line without errors, the problem is probably because the bin path that contains
|
Beta Was this translation helpful? Give feedback.
-
Hmm,
and still the same error (plus |
Beta Was this translation helpful? Give feedback.
-
See my question to @junegunn whether I shouldn’t get rid of these scripts completely and then in the beginning of |
Beta Was this translation helpful? Give feedback.
-
On Wed Apr 24, 2024 at 1:22 PM CEST, Koichi Murase wrote:
The twisted usage of `/etc/profile.d/*.sh` in openSUSE is discussed in openSUSE/aaa_base#141. Maybe it will be shifted to the normal scheme in the future, but for now, the scripts in `/etc/profile.d/*.sh` seem supposed to be hard coded in `/etc/bash.bashrc`. You can request a change similar to [`/etc/bash.bashrc` in openSUSE/aaa_base#141](https://github.com/openSUSE/aaa_base/pull/141/files#diff-d62bf7c43ba9a0e8a95d5d01a034ff61ee1d739c13e946486cc76b31763106be).
Thank you very much. I have modified my commit accordingly.
|
Beta Was this translation helpful? Give feedback.
So I expect the main package
fzf
provides/shell
directory somewhere such as/usr/share/fzf/shell
to allow the users wanting finer control to use them as an option.For the users who don't want to (or don't know how to) edit
~/.bashrc
, the packagefzf-bash-completion
(or maybe better named asfzf-bash-integration
?) might still offer a single-line scriptif [[ ${BASH_VERSION-} ]]; then eval "$(fzf --bash)"; fi
at/etc/profile.d/fzf-bash.sh
, etc. (Note that this would be incompatible with ble.sh. The user still needs to configure fzf's integration with blesh without using thefzf-bash-completion
package.)