瀏覽代碼

Add convenience function to do things twice()

Alois Mahdal 7 年之前
父節點
當前提交
3ac13cca04
共有 1 個檔案被更改,包括 8 行新增0 行删除
  1. 8
    0
      dotfiles/bash/main.bashrc

+ 8
- 0
dotfiles/bash/main.bashrc 查看文件

45
     done
45
     done
46
 }
46
 }
47
 
47
 
48
+twice() {
49
+    #
50
+    # Run $@ two times
51
+    #
52
+    "$@"
53
+    "$@"
54
+}
55
+
48
 git() {
56
 git() {
49
     #
57
     #
50
     # /usr/bin/git wrapper just to disable dangerous commands
58
     # /usr/bin/git wrapper just to disable dangerous commands