From c77a02f4c3526387f7d45076f2219f44062dc3af Mon Sep 17 00:00:00 2001 From: Joel Grunbaum <joelgrun@gmail.com> Date: Tue, 03 Oct 2023 03:29:49 +0000 Subject: [PATCH] Added ble.sh for bash completions --- .gitmodules | 3 +++ bash/bashrc | 4 ++++ bash/ble.sh | 1 + bash/DICT | 6 ++++++ 4 files changed, 14 insertions(+), 0 deletions(-) diff --git a/.gitmodules b/.gitmodules index 6a2d298..d88f62f 100644 --- a/.gitmodules +++ b/.gitmodules @@ -6,3 +6,6 @@ path = zsh/antidote url = https://github.com/mattmc3/antidote.git branch = main +[submodule "bash/ble.sh"] + path = bash/ble.sh + url = https://github.com/akinomyoga/ble.sh.git diff --git a/bash/DICT b/bash/DICT index ddca908..fd01327 100644 --- a/bash/DICT +++ b/bash/DICT @@ -1,3 +1,9 @@ DEPS="all-shells" FILES="bashrc profile" LOCATIONS="${HOME}/.bashrc ${HOME}/.bash_profile" + +custom() { +cd ble.sh +make +ln -s "$(pwd)/out/ble.sh" "${HOME}/.ble.sh" +} diff --git a/bash/bashrc b/bash/bashrc index 3299c72..875fd74 100644 --- a/bash/bashrc +++ b/bash/bashrc @@ -2,6 +2,10 @@ PS1="[\u@\h \W]\$ " PROMPT_COMMAND=${PROMPT_COMMAND:+$PROMPT_COMMAND; }'printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/\~}"' +# Common completions source ~/.commonshell [ -r /usr/share/doc/pkgfile/command-not-found.bash ] && source /usr/share/doc/pkgfile/command-not-found.bash [ -r /usr/share/bash-completion/bash_completion ] && . /usr/share/bash-completion/bash_completion + +# Ble.sh for syntax highlighting and shell completion +[ -r ${HOME}/.ble.sh ] && source ${HOME}/.ble.sh diff --git a/bash/ble.sh b/bash/ble.sh new file mode 160000 index 0000000..9d84b42 --- /dev/null +++ b/bash/ble.sh @@ -0,0 +1 @@ +Subproject commit 9d84b424daf31b192891c06275fff316fa5ddd35 -- Gitblit v1.9.3