File tree 1 file changed +8
-18
lines changed
1 file changed +8
-18
lines changed Original file line number Diff line number Diff line change @@ -18,24 +18,6 @@ Installation is as simple as cloning this repo and then putting the `diff-so-fan
18
18
19
19
## Usage
20
20
21
- diff-so-fancy can be used with the standard ` diff ` tool, and can even be configured as the default for diffs with git.
22
-
23
- ### With diff
24
-
25
- Use ` -u ` with diff to for unified output, and pipe the output to ` diff-so-fancy ` :
26
-
27
- ``` shell
28
- diff -u file_a file_b | diff-so-fancy
29
- ```
30
-
31
- You could, of course, create a function for it too. In your ` ~/.bashrc ` or ` ~/.zshrcz ` for example:
32
-
33
- ``` shell
34
- function dsf() { diff -u " $1 " " $2 " | diff-so-fancy; }
35
- ```
36
-
37
- And than you can just type ` dsf file_a file_b ` to get nice looking diff output.
38
-
39
21
### With git
40
22
41
23
Configure git to use ` diff-so-fancy ` for all diff output:
@@ -66,6 +48,14 @@ git config --global color.diff.new "green bold"
66
48
git config --global color.diff.whitespace " red reverse"
67
49
```
68
50
51
+ ### With diff
52
+
53
+ Use ` -u ` with ` diff ` for unified output, and pipe the output to ` diff-so-fancy ` :
54
+
55
+ ``` shell
56
+ diff -u file_a file_b | diff-so-fancy
57
+ ```
58
+
69
59
## Options
70
60
71
61
### markEmptyLines
You can’t perform that action at this time.
0 commit comments