Skip to content

Commit

Permalink
remove inline readme
Browse files Browse the repository at this point in the history
Fixes #5
  • Loading branch information
stevemao committed Feb 8, 2016
1 parent 30a9703 commit 5898765
Showing 1 changed file with 0 additions and 34 deletions.
34 changes: 0 additions & 34 deletions diff-so-fancy
Original file line number Diff line number Diff line change
@@ -1,39 +1,5 @@
#!/bin/bash

###############
# diff-so-fancy builds on the good-lookin' output of diff-highlight to upgrade your diffs' appearances
# * Output will not be in standard patch format, but will be readable
# * No pesky `+` or `-` at line-stars, making for easier copy-paste.
#
# Screenshot: https://github.com/paulirish/dotfiles/commit/6743b907ff58#commitcomment-13349456
#
#
# Usage
#
# git diff | diff-highlight | diff-so-fancy
#
# Add to .gitconfig so all `git diff` uses it.
# git config --global core.pager "diff-highlight | diff-so-fancy | less -r"
#
#
# Requirements / Install
#
# * GNU sed. On Mac, install it with Homebrew:
# brew install gnu-sed --default-names # You'll have to change below to `gsed` otherwise
# * diff-highlight. It's shipped with Git, but probably not in your $PATH
# ln -sf "$(brew --prefix)/share/git-core/contrib/diff-highlight/diff-highlight" ~/bin/diff-highlight
# * Add some coloring to your .gitconfig:
# git config --global color.diff-highlight.oldNormal "red bold"
# git config --global color.diff-highlight.oldHighlight "red bold 52"
# git config --global color.diff-highlight.newNormal "green bold"
# git config --global color.diff-highlight.newHighlight "green bold 22"
#
###############

# TODO:
# Put on NPM.


[ $# -ge 1 -a -f "$1" ] && input="$1" || input="-"

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

0 comments on commit 5898765

Please sign in to comment.