瀏覽代碼

zshrc scripts (backup+logaliases)

master
Dirk Alders 1 年之前
父節點
當前提交
090c5ce473
共有 3 個檔案被更改,包括 13 行新增2 行删除
  1. 11
    0
      .zshrc.d/__available__/backup_data.zsh
  2. 2
    0
      .zshrc.d/__available__/logaliases.sh
  3. 0
    2
      .zshrc.d/__available__/logview.zsh

+ 11
- 0
.zshrc.d/__available__/backup_data.zsh 查看文件

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

+ 2
- 0
.zshrc.d/__available__/logaliases.sh 查看文件

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

+ 0
- 2
.zshrc.d/__available__/logview.zsh 查看文件

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

Loading…
取消
儲存