From b93afef3506811321e7866f71b21a1f158287e65 Mon Sep 17 00:00:00 2001 From: andre Date: Thu, 5 Mar 2026 11:48:53 +0100 Subject: [PATCH] rootfs/home/andre/.bashrc aktualisiert --- rootfs/home/andre/.bashrc | 31 ++++++++----------------------- 1 file changed, 8 insertions(+), 23 deletions(-) diff --git a/rootfs/home/andre/.bashrc b/rootfs/home/andre/.bashrc index 8eb5d92..d897b6e 100644 --- a/rootfs/home/andre/.bashrc +++ b/rootfs/home/andre/.bashrc @@ -1047,36 +1047,21 @@ rm -f $HOMEDIR/.bash_profile HOSTNAME=`hostname` if [ "$HOSTNAME" != "server" ] then - ### bash completion module - #source <(curl --connect-timeout 3 -f -s -k https://tools.andregeissler.de/completion/clogin-completion.bash) - #source <(curl --connect-timeout 3 -f -s -k https://tools.andregeissler.de/completion/owi2-completion.bash) - - ### bash module - #source <(curl --connect-timeout 3 -f -s -k https://tools.andregeissler.de/modules/arg_ssh.bash) - #source <(curl --connect-timeout 3 -f -s -k https://tools.andregeissler.de/modules/gps_tools.bash) - - for i in `ls /etc/bash_completion.d/*.bash` - do - source $i - done - for i in `ls $HOMEDIR/bash_extensions/*.bash` - do - bash $i - done - if getent hosts ${MYSERVER} >/dev/null && nc -z -w1 ${MYSERVER} 2222 >/dev/null 2>&1; then - if [ "$OS" == "" ]; then + #if [ "$OS" == "" ]; then if [ ! -f $HOMEDIR/bike.jpg ]; then timeout 3 scp -o ConnectTimeout=2 -P 2222 andregeissler@${MYSERVER}:/home/andregeissler/web/tools.andregeissler.de/public_html/bike.jpg $HOMEDIR/bike.jpg fi if [ ! -f $HOMEDIR/ascii-image-converter ]; then timeout 3 scp -o ConnectTimeout=2 -P 2222 andregeissler@${MYSERVER}:/home/andregeissler/web/tools.andregeissler.de/public_html/ascii-image-converter $HOMEDIR/ascii-image-converter fi - if echo "$-" | grep i > /dev/null; then - echo - # $HOMEDIR/ascii-image-converter -C $HOMEDIR/bike.jpg -d 80,23 | tr "@" " " ; echo - fi - fi + for i in `ls /etc/bash_completion.d/*.bash`; do + source $i + done + for i in `ls $HOMEDIR/bash_extensions/*.bash`; do + bash $i + done + #fi else echo "${MYSERVER} nicht erreichbar" fi