From 33ba7df9efe49f01f436e02c83762774f4acf361 Mon Sep 17 00:00:00 2001 From: pika Date: Wed, 4 Sep 2024 17:31:23 +0200 Subject: [PATCH] cleanified the config again --- .bashrc | 31 +++++++++++++++++-------------- 1 file changed, 17 insertions(+), 14 deletions(-) diff --git a/.bashrc b/.bashrc index f4f859a..98a777a 100644 --- a/.bashrc +++ b/.bashrc @@ -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