Skip to content

Commit 967fb0b

Browse files
committed
Fixes path detection for nvm users
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.
1 parent 11213ba commit 967fb0b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

diff-so-fancy

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

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

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

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

0 commit comments

Comments
 (0)