Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bash Line Editor a.k.a. ble.sh support? #284

Open
robi42 opened this issue Sep 25, 2024 · 0 comments
Open

Bash Line Editor a.k.a. ble.sh support? #284

robi42 opened this issue Sep 25, 2024 · 0 comments

Comments

@robi42
Copy link

robi42 commented Sep 25, 2024

One last thing missing when moving over from zsh (with an oh-my-zsh setup) was some shell command syntax highlighting and suggestions (auto-completion etc.).
Bash Line Editor (ble.sh) works well there (for me).
Have built and installed from source, as documented.

Sample .bashrc:

# Omakub
source ~/.local/share/omakub/defaults/bash/rc

# ble.sh
[[ $- == *i* ]] && source ~/.local/share/blesh/ble.sh --noattach

# Add Git info to default Omakub prompt
PS1=$'\uf0a9 '
PS1="\[\e]0;\w\$(GIT_PS1_SHOWUNTRACKEDFILES=1 GIT_PS1_SHOWDIRTYSTATE=1 __git_ps1)\a\]$PS1"

# Editor used by CLI
export EDITOR="nvim"
export SUDO_EDITOR="$EDITOR"

source "$HOME/.cargo/env"

alias pbcopy="xclip -sel clip"
alias idea="intellij-idea-ultimate"

# ble.sh
[[ ! ${BLE_VERSION-} ]] || ble-attach

Accompanying .blerc:

# blerc

# If ble/contrib/integration/fzf cannot find the fzf directory, please set the
# following variable "_ble_contrib_fzf_base" manually.  The value
# "/path/to/fzf-directory" should be replaced by a path to the fzf directory
# such as "$HOME/.fzf" or "/usr/share/fzf" that contain
# "shell/{completion,key-bindings}.bash" or "{completion,key-bindings}.bash".

#_ble_contrib_fzf_base=/path/to/fzf-directory


# Note: If you would like to combine fzf-completion with bash_completion, you
# need to load bash_completion earlier than fzf-completion.

#source /path/to/bash_completion.sh


# Set up fzf
ble-import -d integration/fzf-completion
ble-import -d integration/fzf-key-bindings
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant