cleanified the config again

This commit is contained in:
pika 2024-09-04 17:31:23 +02:00
parent 8be2e01f1c
commit 33ba7df9ef

31
.bashrc
View file

@ -34,11 +34,13 @@ check_root() {
} }
# ─< ble.sh -- https://github.com/akinomyoga/ble.sh >───────────────────────────────────── # ─< ble.sh -- https://github.com/akinomyoga/ble.sh >─────────────────────────────────────
if [[ ! -f $HOME/.local/share/blesh/ble.sh ]]; then p_blesh() {
bash -norc -c "$(curl -sSL https://git.k4li.de/pika/scripts/raw/branch/main/bash/installs/install-blesh.sh)" if [[ ! -f $HOME/.local/share/blesh/ble.sh ]]; then
else bash -norc -c "$(curl -sSL https://git.k4li.de/pika/scripts/raw/branch/main/bash/installs/install-blesh.sh)"
source "$HOME/.local/share/blesh/ble.sh" --attach=none else
fi source "$HOME/.local/share/blesh/ble.sh" --attach=none
fi
}
_sensible.bash_() { _sensible.bash_() {
# Sensible Bash - An attempt at saner Bash defaults # Sensible Bash - An attempt at saner Bash defaults
@ -205,12 +207,13 @@ p_has() {
fi fi
} }
plugins() { # plugins() {
# ─< qfc -- https://github.com/pindexis/qfc >───────────────────────────────────────────── # ─< qfc -- https://github.com/pindexis/qfc >─────────────────────────────────────────────
# [[ -s "$HOME/.qfc/bin/qfc.sh" ]] && source "$HOME/.qfc/bin/qfc.sh" # [[ -s "$HOME/.qfc/bin/qfc.sh" ]] && source "$HOME/.qfc/bin/qfc.sh"
# p_basher # p_basher
p_has # p_has
} # p_blesh
# }
_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)
@ -605,8 +608,8 @@ main() {
check_root check_root
get_packager get_packager
get_alias get_alias
plugins # plugins
tools # tools
# [[ ${BLE_VERSION-} ]] && ble-attach
} }
main main
[[ ${BLE_VERSION-} ]] && ble-attach