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

21
.bashrc
View file

@ -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_() {