Inhaltsverzeichnis:

ble.sh

2023-03-31 / 2024-04-28

Autocomplete-Function für bash analog ZSH nur angeblich noch besser.

Installation

wget https://github.com/akinomyoga/ble.sh/releases/download/nightly/ble-nightly.tar.xz
tar xJf ble-nightly.tar.xz
mkdir -p ~/.local/share/blesh
cp -fR ble-nightly/* ~/.local/share/blesh/
echo '' >> ~/.bashrc
echo '# load ble.sh' >> ~/.bashrc
echo '[[ $- == *i* ]] && source ~/.local/share/blesh/ble.sh --attach=none' >> ~/.bashrc
echo '[[ ${BLE_VERSION-} ]] && ble-attach' >> ~/.bashrc
chmod 774 ~/.local/share/blesh/ble.sh
rm ble-nightly.tar.xz
rm -r ble-nightly

#falls .bashrc aus Sicherung wiederhergestellt wird, muss der Zweite ble.sh Eintrag in der Datei entfernt werden! 

Update

ble-update

Farben anpassen

Aktuelle Farben abfragen

ble-color-setface

Farben anpassen

nano ~/.blerc

echo 'ble-face auto_complete=fg=yellow' >> ~/.blerc
echo 'ble-face filename_directory=fg=navy,bold' >> ~/.blerc
echo 'ble-face filename_other=none' >> ~/.blerc
echo 'ble-face filename_executable=fg=green' >> ~/.blerc
echo 'ble-face command_function=fg=198' >> ~/.blerc
echo 'ble-face syntax_function_name=fg=198,bold' >> ~/.blerc