rootfs/home/andre/.bashrc aktualisiert
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
###
|
||||
### Version vom 29. November 2025 (1)
|
||||
### 12. Januar 2026
|
||||
###
|
||||
#
|
||||
# set +o history; source <(curl -k https://tools.andregeissler.de/bashrc) ; set -o history; history -c
|
||||
#
|
||||
|
||||
export HISTCONTROL=ignoreboth:erasedups
|
||||
export HISTFILESIZE=20000
|
||||
@@ -16,19 +13,10 @@ alias ll='ls -haltr'
|
||||
alias ppm="sudo perl -MCPAN -e 'shell'"
|
||||
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'
|
||||
#alias __restore_bashrc='set +o history; scp -P 2222 andregeissler@vesta.agserver.de:$HOMEDIR/web/tools.andregeissler.de/public_html/bashrc $HOMEDIR/.bashrc ; set -o history'
|
||||
|
||||
#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 ßh=ssh
|
||||
alias TS='ts "%Y-%m-%d %H:%M:%S"'
|
||||
|
||||
alias clear_history="history -c && history -w && clear"
|
||||
|
||||
alias extip='echo $(curl --connect-timeout 5 -s https://ipinfo.io/ip)'
|
||||
alias grep='grep --line-buffered'
|
||||
alias egrep='egrep --line-buffered'
|
||||
@@ -383,13 +371,13 @@ AddTimeDateToPictures() {
|
||||
|
||||
if [[ $J =~ ^[a-z0-9]+_[a-z0-9.]+_[0-9]+\.jpg$ ]]; then
|
||||
FS2=$(bc -l <<< "$FS+25" | awk -F. '{print $1}')
|
||||
convert $J -gravity SouthWest -pointsize $FS -font Courier-10-Pitch-Regular -fill red -undercolor black -annotate +0+$FS2 "Position $POSITION" $J;
|
||||
convert $J -gravity SouthWest -pointsize $FS -font Courier-10-Pitch-Regular -fill white -undercolor black -annotate +0+$FS2 "Position $POSITION" $J;
|
||||
mv "$J" "I${J##*_}"
|
||||
else
|
||||
# zusammengesetzer datums-, zeitstring in bild einfügen (mittig oben)
|
||||
convert $J -gravity North -pointsize $FS -font Courier-10-Pitch-Regular -fill red -undercolor black -annotate +0+0 "Datum $DAY. $MONTH $YEAR Zeit $TIME" $J;
|
||||
convert $J -gravity North -pointsize $FS -font Courier-10-Pitch-Regular -fill white -undercolor black -annotate +0+0 "Datum $DAY. $MONTH $YEAR Zeit $TIME" $J;
|
||||
FS2=$(bc -l <<< "$FS+25" | awk -F. '{print $1}')
|
||||
convert $J -gravity North -pointsize $FS -font Courier-10-Pitch-Regular -fill red -undercolor black -annotate +0+$FS2 "Position $POSITION" $J;
|
||||
convert $J -gravity North -pointsize $FS -font Courier-10-Pitch-Regular -fill white -undercolor black -annotate +0+$FS2 "Position $POSITION" $J;
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user