tianyun 9 月之前
父节点
当前提交
0afa97a70f
共有 1 个文件被更改,包括 9 次插入0 次删除
  1. 9 0
      sh_config.sh

+ 9 - 0
sh_config.sh

@@ -353,4 +353,13 @@ function btm_linux(){
     fi
 
     ~/btm  --process_memory_as_value
+}
+alias watch_alias='watch '
+# 函数,每隔2秒执行一次参数命令
+function watch_func() {
+    while true; do
+        clear
+        "$@"
+        sleep 2
+    done
 }