Skip to content

Commit 5898765

Browse files
committed
remove inline readme
Fixes #5
1 parent 30a9703 commit 5898765

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

diff-so-fancy

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,5 @@
11
#!/bin/bash
22

3-
###############
4-
# diff-so-fancy builds on the good-lookin' output of diff-highlight to upgrade your diffs' appearances
5-
# * Output will not be in standard patch format, but will be readable
6-
# * No pesky `+` or `-` at line-stars, making for easier copy-paste.
7-
#
8-
# Screenshot: https://github.com/paulirish/dotfiles/commit/6743b907ff58#commitcomment-13349456
9-
#
10-
#
11-
# Usage
12-
#
13-
# git diff | diff-highlight | diff-so-fancy
14-
#
15-
# Add to .gitconfig so all `git diff` uses it.
16-
# git config --global core.pager "diff-highlight | diff-so-fancy | less -r"
17-
#
18-
#
19-
# Requirements / Install
20-
#
21-
# * GNU sed. On Mac, install it with Homebrew:
22-
# brew install gnu-sed --default-names # You'll have to change below to `gsed` otherwise
23-
# * diff-highlight. It's shipped with Git, but probably not in your $PATH
24-
# ln -sf "$(brew --prefix)/share/git-core/contrib/diff-highlight/diff-highlight" ~/bin/diff-highlight
25-
# * Add some coloring to your .gitconfig:
26-
# git config --global color.diff-highlight.oldNormal "red bold"
27-
# git config --global color.diff-highlight.oldHighlight "red bold 52"
28-
# git config --global color.diff-highlight.newNormal "green bold"
29-
# git config --global color.diff-highlight.newHighlight "green bold 22"
30-
#
31-
###############
32-
33-
# TODO:
34-
# Put on NPM.
35-
36-
373
[ $# -ge 1 -a -f "$1" ] && input="$1" || input="-"
384

395
color_code_regex=$'(\x1B\\[([0-9]{1,2}(;[0-9]{1,2})?)[m|K])?'

0 commit comments

Comments
 (0)