Closed Darukutsu closed 1 year ago
Where should I source '.fzf.bash'? Before or after ble.sh.
It should be sourced after ble.sh
.
Ah, OK. When I initially wrote this contrib/README.md
, I think the ble.sh/README.md
was telling users to source ble.sh at the beginning of ~/.bashrc
. However, now ble.sh/README.md
suggests an alternative option to put source ble.sh
anywhere in ~/.bashrc
, so I think we should add an adjustment to contrib/README.md
.
I added a sentence (d2c5eb3b7a6ff24498567d80ea8e0b7ee9f1a1c8) in README.md.
[[ ${BLE_VERSION-} ]] && ble-attach ## fzf ## this works source $XDG_CONFIG_HOME/bash/fzf.bash
I would expect that source fzf.bash
would be placed before ble-attach
(or doesn't it work?). When we use the source ble.sh --noattach
& ble-attach
pair, I expect that ble-attach
is always at the bottom of ~/.bashrc
.
When I put it before ble-attach
the following errors will appear (although it works):
ble.sh (bind): unsupported readline function 'emacs-editing-mode'.
ble.sh (bind): unsupported readline function 'emacs-editing-mode'.
ble.sh (bind): unsupported readline function 'vi-editing-mode'.
Putting it after doesn't show errors.
Thanks for the information. I tried to reproduce it, but it doesn't seem to reproduce in my environment. Could you copy and paste the output of the following command in a ble.sh session?
$ ble/widget/display-shell-version
GNU bash, version 5.1.16(1)-release (x86_64-pc-linux-gnu) with ble.sh
This means that you are using an old version of ble-0.4. I'm not sure which Linux distribution and package you are using, but could you update it to the latest version of ble-0.4?
Edit: Or another possibility would be that you are using ble-0.3, but ble-0.3 doesn't support contrib
. In that case, it doesn't work anyway. You need to update it to ble-0.4.
ah... I used AUR package v0.3.3 ... switching to blesh-git seems that it works as expected. Your config is correct.
Ah, I now understand why the instructions were unclear to you. I guess you have cloned this repository separately. Just to make it clear, you don't need to clone the contrib
repository (with ble-0.4) because the ble-0.4 package already includes the contents of contrib
.
I have updated the repository description to avoid confusion. Thanks!
This is more question if README.MD should be updated.
I probably don't understand something, but provided instructions didn't work for me, instead I had to do something reversely (to work).
Where should I source '.fzf.bash'? Before or after ble.sh.
My working config: