I've decided to switch back to Bash from Fish, but I can't live anymore without syntax highlighting, so I've installed ble.sh to do the same in Bash. Everything is fine, except that I can't find any information about setting background colour of autocompletions — it's always blinding white:


In this section author describes how to set highlighiting colours, but none of this applies to autocompletions colours.

Any ideas?

1 Answer 1


You can use the face auto_complete to configure the style of suggestions by auto-complete.

Here are some examples for the setting in your ~/.blerc:

# blerc

# ble-0.4+ (edit: 2022-12-04, fix 2023-02-10)
ble-face auto_complete='fg=242,bg=235'
ble-face auto_complete='fg=white,bg=69'
ble-face auto_complete='fg=240,underline,italic'

# ble-0.3
ble-color-setface auto_complete fg=242,bg=235
ble-color-setface auto_complete fg=white,bg=69
ble-color-setface auto_complete fg=240,underline,italic

I'm sorry for inconvenience. I updated README.md in the latest commit 50327c3. I also changed ble-color-setface [edit: renamed to ble-face in ble-0.4] to output the settings of current faces when no argument is supplied. Now, with the latest devel version, you can check the list of faces by the following command:

$ ble-color-setface
ble-color-setface auto_complete fg=246,underline,italic
ble-color-setface blerc_git_commit_id fg=navy
ble-color-setface vbell_erase bg=252
ble-color-setface vbell_flash fg=green,reverse
  • How can I disable exit status outputs like [ble: exit ...]? Dec 26, 2019 at 17:19
  • 1
    For the current devel version, please put an empty function TRAPERR() { :; } in your ~/.blerc. Outputting exit status is the default behavior when TRAPERR is not defined.
    – akinomyoga
    Dec 26, 2019 at 17:24
  • 1
    @undefined I newly implemented an option exec_errexit_mark. When you use the latest version, please add bleopt exec_errexit_mark='' in blerc to disable exit status mark.
    – akinomyoga
    Dec 27, 2019 at 18:24
  • I put up a feature request for more muted or black and white colors, maybe like Gruvbox, or just more like Fish Autosuggest here: github.com/akinomyoga/ble.sh/issues/258
    – alchemy
    Dec 2, 2022 at 23:48
  • I have to use ble-face auto_complete=fg=242,bg=235", with an extra "=" after the auto_complete keyword
    – caoanan
    Feb 10, 2023 at 2:47

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .