瀏覽代碼

Add another useless alias

Alois Mahdal 11 年之前
父節點
當前提交
f5b9f17bef
共有 1 個文件被更改,包括 9 次插入0 次删除
  1. 9
    0
      dotfiles/bash/global-before.bashrc

+ 9
- 0
dotfiles/bash/global-before.bashrc 查看文件

@@ -17,6 +17,14 @@ git() {
17 17
     fi
18 18
 }
19 19
 
20
+clear_to_bottom() {
21
+    clear
22
+    for ((i=1; i<=$LINES; i++));
23
+    do
24
+        echo "$n"
25
+    done
26
+}
27
+
20 28
 ### .... ###
21 29
 ### BASH ###
22 30
 ### '''' ###
@@ -27,6 +35,7 @@ export HISTIGNORE="$HISTIGNORE:git ap:git cm:git cma:git dc:git st"
27 35
 export GLOBIGNORE=.:..
28 36
 
29 37
 # some more aliases
38
+alias cls='clear_to_bottom'
30 39
 alias ll='ls -lh'
31 40
 alias lla='ls -lha'
32 41
 alias open='gnome-open'