diff --git a/rootfs/home/andre/.bashrc b/rootfs/home/andre/.bashrc index 9d3bf09..26a4c77 100644 --- a/rootfs/home/andre/.bashrc +++ b/rootfs/home/andre/.bashrc @@ -14,7 +14,7 @@ export HOMEDIR=/home/andre alias ll='ls -haltr' alias ppm="sudo perl -MCPAN -e 'shell'" -alias RDPC='__RDP 10.101.0.236' +alias RDPC='RDP 10.101.0.236' #alias __activate_bashrc='set +o history; source <(curl -k https://tools.andregeissler.de/bashrc) ; set -o history ; history -c' #alias __backup_bashrc='set +o history; scp -P 2222 $HOMEDIR/.bashrc andregeissler@vesta.agserver.de:$HOMEDIR/web/tools.andregeissler.de/public_html/bashrc ; set -o history' @@ -23,7 +23,7 @@ alias RDPC='__RDP 10.101.0.236' #alias __backup_ssh_host_config='set +o history; scp -P 2222 $HOMEDIR/.ssh/config andregeissler@vesta.agserver.de:$HOMEDIR/web/tools.andregeissler.de/public_html/ssh_host_config ; set -o history' #alias __restore_ssh_host_config='set +o history; scp -P 2222 andregeissler@vesta.agserver.de:$HOMEDIR/web/tools.andregeissler.de/public_html/ssh_host_config $HOMEDIR/.ssh/config ; set -o history' #alias __ssh_host_config=__restore_ssh_host_config -alias __ssh_h='egrep "^# " .ssh/config' +alias ssh_h='egrep "^# " .ssh/config' alias ßh=ssh alias TS='ts "%Y-%m-%d %H:%M:%S"' @@ -63,7 +63,7 @@ color_prompt=yes # $- Options set for shell if echo "$-" | grep i > /dev/null; then - ip=`__extip` + ip=`extip` fi # \n grün username@hostname dflt :blau workingdir dflt \n ip \n RET: grün oder rot je nach ret, ret gelb zeit dflt blau $ dflt @@ -164,7 +164,7 @@ cy-ssh() { RDP() { if [ "$1" == "" ] then - echo 'call with __RDP ' + echo 'call with RDP ' else xfreerdp /cert:ignore '/u:conacc\ageissler' '/p:FranziskaR439!' /dynamic-resolution /v:$1 & fi @@ -230,19 +230,15 @@ conv_owi() { arg_help() { echo " Aliases - ll ppm grep egrep - -Weitere Aliases und Funktionen haben ein vorangestelltes __ - -Aliases - backup_bashrc restore_bashrc backup_ssh_host_config restore_ssh_host_config extip +" +cat $HOMEDIR/.bashrc | egrep "alias " | grep -v "#alias" | awk -F'=' '{print $1}' | awk '{print $2}' | sort | uniq | tr "\n" " " +echo " Funktionen - arg_help svncom screen_h sudo_h iptables_h ssh_h - init.d_h delete_files_older logrotate rotate - ssh_perconal_environment ssh_personal_config eping - sysinfo pw update_git prompt_confirm conv_owi - cy-ssh ßh TS sudo +" +cat $HOMEDIR/.bashrc | grep "() {" | tr -d "{" | sort | uniq | tr -d "\n" + +echo " wetter zeigt Wettervorhersagen an wi @@ -300,7 +296,7 @@ BG_WHITE="\e[48;5;15m" BG_NO="\e[0;00m" -AddTimeDateToPictures () { +AddTimeDateToPictures() { J=$1 echo echo fügt Datum, Zeit und GPS Position aus den EXIF Daten ins Bild ein @@ -398,7 +394,7 @@ AddTimeDateToPictures () { } -AddTimeDateToPicturesMenu () { +AddTimeDateToPicturesMenu() { LOG="/var/log/AddTimeDateToPicturesMenu.log" date > $LOG echo $@ >> $LOG @@ -759,7 +755,7 @@ eping() { I=0 date fi - __e1ping $P + e1ping $P sleep 1 I=`expr $I + 1` done @@ -1020,11 +1016,11 @@ install_ssh_authorized_key () { if [ "$1" == "" ] then echo "Installiert ssh-ed25519 in $HOMEDIR/.ssh/authorized_keys" - __prompt_confirm "Weiter?" || return 0 + prompt_confirm "Weiter?" || return 0 echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBlESXnONiHf/cazVZcjti3iymJYcwJvHc8r6Od7Eb6H ageissler.tux.2212141002" >> $HOMEDIR/.ssh/authorized_keys else echo "Installiert ssh-ed25519 in /home/$1/.ssh/authorized_keys" - __prompt_confirm "Weiter?" || return 0 + prompt_confirm "Weiter?" || return 0 echo "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBlESXnONiHf/cazVZcjti3iymJYcwJvHc8r6Od7Eb6H ageissler.tux.2212141002" >> /home/$1/.ssh/authorized_keys fi }