Skip to content

Commit

Permalink
Fixes path detection for nvm users
Browse files Browse the repository at this point in the history
nvm creates the symlinks:
  * ~/.nvm/versions/node/v5.5.0/bin/diff-so-fancy -> ~/.nvm/versions/node/v5.5.0/lib/node_modules/diff-so-fancy/diff-so-fancy
  * ~/.nvm/versions/node/v5.5.0/bin/diff-highlight -> ~/.nvm/versions/node/v5.5.0/lib/node_modules/diff-so-fancy/third_party/diff-highlight/diff-highlight
which was breaking the path detection.
  • Loading branch information
anshul committed Feb 10, 2016
1 parent 11213ba commit 967fb0b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion diff-so-fancy
Expand Up @@ -2,7 +2,7 @@

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

diff_highlight="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )/third_party/diff-highlight/diff-highlight"
diff_highlight="$( cd "$( dirname realpath "${BASH_SOURCE[0]}" )" && pwd )/third_party/diff-highlight/diff-highlight"

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

0 comments on commit 967fb0b

Please sign in to comment.