Просмотр исходного кода

Add smart bcompare wrapper

In case of 2 parameters, the wrapper will short-circuit if the files are
same.
Alois Mahdal 10 лет назад
Родитель
Сommit
c4da4cd715
1 измененных файлов: 5 добавлений и 0 удалений
  1. 5
    0
      dotfiles/bash/main.bashrc

+ 5
- 0
dotfiles/bash/main.bashrc Просмотреть файл

@@ -21,6 +21,11 @@ clsz() {
21 21
     tput clear; tput cup $(tput lines) 0
22 22
 }
23 23
 
24
+bcdiff() {
25
+    test $# -eq 2 && diff "$@" >/dev/null && return
26
+    bcompare "$@" &
27
+}
28
+
24 29
 ### .... ###
25 30
 ### BASH ###
26 31
 ### '''' ###