From 8cca584f20547dc9a2b0c0c597d320e60629fac3 Mon Sep 17 00:00:00 2001 From: pika <67532734+pik4li@users.noreply.github.com> Date: Sun, 5 Jan 2025 23:42:46 +0100 Subject: [PATCH] fixed --- .bashrc | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/.bashrc b/.bashrc index 1b4bdb8..e775698 100644 --- a/.bashrc +++ b/.bashrc @@ -429,28 +429,27 @@ i_blesh() { cd "$tmp_dir" || echo_error "$tmp_dir is not valid!" git clone --recursive --depth 1 --shallow-submodules https://github.com/akinomyoga/ble.sh.git make -C ble.sh install PREFIX=~/.local - cd "$HOME" || return 0 + bash + # cd "$HOME" || return 0 } _blesh() { if [[ ! -f $HOME/.local/share/blesh/ble.sh ]]; then 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.." - i_blesh && # installing blesh silently - bash + i_blesh# installing blesh silently else # . "$HOME/.local/share/blesh/ble.sh" --attach=none . "$HOME/.local/share/blesh/ble.sh" fi +} - _games() { - if command_exists curl; then - echo_info "Games available. Try 'alias | grep g'" - alias g2048='bash --norc -c "$(curl -sSL https://git.k4li.de/pika/scripts/raw/branch/main/bash/games/2048.sh)"' - alias gwordle='bash --norc -c "$(curl -sSL https://git.k4li.de/pika/scripts/raw/branch/main/bash/games/wordle.sh)"' - fi - } - +_games() { + if command_exists curl; then + echo_info "Games available. Try 'alias | grep g'" + alias g2048='bash --norc -c "$(curl -sSL https://git.k4li.de/pika/scripts/raw/branch/main/bash/games/2048.sh)"' + alias gwordle='bash --norc -c "$(curl -sSL https://git.k4li.de/pika/scripts/raw/branch/main/bash/games/wordle.sh)"' + fi } _color_prompt_() {