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!" 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
echo_info "Games available. Try 'alias | grep g'" 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 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)"' alias gwordle='bash --norc -c "$(curl -sSL https://git.k4li.de/pika/scripts/raw/branch/main/bash/games/wordle.sh)"'
fi fi
}
} }
_color_prompt_() { _color_prompt_() {