zshrc scripts (backup+logaliases)

This commit is contained in:
Dirk Alders 2023-06-09 15:33:31 +02:00
parent 1a6d27cd1d
commit 090c5ce473
3 changed files with 13 additions and 2 deletions

View File

@ -0,0 +1,11 @@
#!/bin/sh
#
if [ `~/bin/backup_data_info` -ge 6 ]; then
echo -e "\033[0;33m"
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo !!! Automatically backup needed! Start \~/bin/backup_data !!!
echo !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
echo -e "\033[0m"
fi

View File

@ -0,0 +1,2 @@
alias logtail="tail -fn 100 |grep -i -e '^' -e 'warning' -e 'error'"
alias logless="cat | grep -i -e '^' -e 'warning' -e 'error'"

View File

@ -1,2 +0,0 @@
alias logview="tail -fn 100 |grep -i -e '^' -e 'warning' -e 'error'"