This commit is contained in:
pika 2025-01-05 23:42:46 +01:00
parent 86234726fd
commit 8cca584f20

View file

@ -429,19 +429,20 @@ i_blesh() {
cd "$tmp_dir" || echo_error "$tmp_dir is not valid!" cd "$tmp_dir" || echo_error "$tmp_dir is not valid!"
git clone --recursive --depth 1 --shallow-submodules https://github.com/akinomyoga/ble.sh.git git clone --recursive --depth 1 --shallow-submodules https://github.com/akinomyoga/ble.sh.git
make -C ble.sh install PREFIX=~/.local make -C ble.sh install PREFIX=~/.local
cd "$HOME" || return 0 bash
# cd "$HOME" || return 0
} }
_blesh() { _blesh() {
if [[ ! -f $HOME/.local/share/blesh/ble.sh ]]; then if [[ ! -f $HOME/.local/share/blesh/ble.sh ]]; then
d_blesh # Dependency check for blesh d_blesh # Dependency check for blesh
echo_info "Installing blesh.. Depending on your internet connection and the performance of the client, this could take a minute or two.." echo_info "Installing blesh.. Depending on your internet connection and the performance of the client, this could take a minute or two.."
i_blesh && # installing blesh silently i_blesh# installing blesh silently
bash
else else
# . "$HOME/.local/share/blesh/ble.sh" --attach=none # . "$HOME/.local/share/blesh/ble.sh" --attach=none
. "$HOME/.local/share/blesh/ble.sh" . "$HOME/.local/share/blesh/ble.sh"
fi fi
}
_games() { _games() {
if command_exists curl; then if command_exists curl; then
@ -451,8 +452,6 @@ _blesh() {
fi fi
} }
}
_color_prompt_() { _color_prompt_() {
# set a fancy prompt (non-color, unless we know we "want" color) # set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in case "$TERM" in