New backup 2025-08-28 12:47:16

This commit is contained in:
Penelope Gwen 2025-08-28 12:47:16 -07:00
parent 33ed9eb20e
commit 4a130def87

View file

@ -61,6 +61,18 @@ filecount-monitor(){
[[ -z ${1} ]] && fc_targetdir=$(pwd) || fc_targetdir="${1}"
watch "find ${fc_targetdir} -type f | wc -l"
}
pwatch(){
local firstArg=$1
if [ $(type -t $firstArg) = function ];then
shift && while true;do clear -x;command bash -c "$(declare -f $firstArg);$firstArg $*";sleep 2;done
elif [ $(type -t $firstArg) = alias ];then
# alias sudo='\sudo '
while true;do clear -x;eval "$@";sleep 2;done
else
while true;do clear -x;command "$@";sleep 2;done
fi
}
#alias devbox-stable="TERM=xterm-256color toolbox enter debian-toolbox-12"
#alias devbox-testing="TERM=xterm-256color toolbox enter debian-toolbox-testing"
#git shortcut to quickly push all changes with comment