소스 검색

Add convenience function to do things twice()

Alois Mahdal 6 년 전
부모
커밋
3ac13cca04
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8
    0
      dotfiles/bash/main.bashrc

+ 8
- 0
dotfiles/bash/main.bashrc 파일 보기

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