This commit is contained in:
Brian Zalewski 2023-08-02 19:03:05 +00:00
parent ae137bc6ab
commit 91ed4ce8e7
4 changed files with 31 additions and 5 deletions

View file

@ -74,11 +74,11 @@
type = "file"
url = "https://gitlab.com/megabyte-labs/gas-station/-/raw/master/environments/prod/group_vars/all/helm.yml"
refreshPeriod = "{{ $refreshPeriod }}"
[".local/share/blesh"]
[".local/share/blesh/src"]
type = "git-repo"
url = "https://github.com/akinomyoga/ble.sh.git"
refreshPeriod = "{{ $refreshPeriod }}"
clone.args = ["--depth", "1"]
clone.args = ["--shallow-submodules", "--recursive", "--depth", "1"]
pull.args = ["--ff-only"]
[".local/share/bash_it"]
type = "git-repo"

View file

@ -23,9 +23,9 @@ if command -v powerline-daemon > /dev/null && [ -f "$BASH_IT/bash_it.sh" ]; then
fi
### Ensure ble.sh installed
if [ -d "${XDG_DATA_HOME:-$HOME/.local/share}/ble.sh" ] && [ ! ]; then
logg info "${XDG_DATA_HOME:-$HOME/.local/share}/ble.sh present and ${XDG_DATA_HOME:-$HOME/.local/share}/blesh not present - installing ble.sh..."
make -C "${XDG_DATA_HOME:-$HOME/.local/share}/ble.sh" install > /dev/null && logg success "Installed ble.sh"
if [ -d "${XDG_DATA_HOME:-$HOME/.local/share}/blesh/src" ] && [ ! ]; then
logg info "${XDG_DATA_HOME:-$HOME/.local/share}/ble.sh/src present and ${XDG_DATA_HOME:-$HOME/.local/share}/blesh/src not present - installing ble.sh..."
make -C "${XDG_DATA_HOME:-$HOME/.local/share}/ble.sh/src" install > /dev/null && logg success "Installed ble.sh"
fi
### Bash-it completions / plugins

View file

@ -17,6 +17,9 @@ if [ -f "$HOME/.config/shell/profile.sh" ]; then
. "$HOME/.config/shell/profile.sh"
fi
### Ble.sh
[[ $- == *i* ]] && source "${XDG_DATA_HOME:-$HOME/.local/share}/blesh/ble.sh" --noattach --rcfile "${XDG_DATA_CONFIG:-$HOME/.config}/blesh/bleshrc"
### /etc/bashrc
if [ -f /etc/bashrc ]; then
. /etc/bashrc
@ -149,4 +152,7 @@ if [ "$BASH_SUPPORT" = 'true' ]; then
if command -v zoxide > /dev/null; then
eval "$(zoxide init --cmd cd bash)" > /dev/null
fi
### Ble.sh
[[ ${BLE_VERSION-} ]] && ble-attach
fi

View file

@ -0,0 +1,20 @@
# 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
# Setup fzf
ble-import -d integration/fzf-completion
ble-import -d integration/fzf-key-bindings