New backup 2025-08-28 12:47:16
This commit is contained in:
parent
33ed9eb20e
commit
4a130def87
1 changed files with 12 additions and 0 deletions
|
@ -61,6 +61,18 @@ filecount-monitor(){
|
||||||
[[ -z ${1} ]] && fc_targetdir=$(pwd) || fc_targetdir="${1}"
|
[[ -z ${1} ]] && fc_targetdir=$(pwd) || fc_targetdir="${1}"
|
||||||
watch "find ${fc_targetdir} -type f | wc -l"
|
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-stable="TERM=xterm-256color toolbox enter debian-toolbox-12"
|
||||||
#alias devbox-testing="TERM=xterm-256color toolbox enter debian-toolbox-testing"
|
#alias devbox-testing="TERM=xterm-256color toolbox enter debian-toolbox-testing"
|
||||||
#git shortcut to quickly push all changes with comment
|
#git shortcut to quickly push all changes with comment
|
||||||
|
|
Loading…
Add table
Reference in a new issue