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