Last active
December 20, 2023 19:40
-
-
Save cam8001/7301869 to your computer and use it in GitHub Desktop.
Use nice word-level highlighting in git.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# See https://github.com/git/git/tree/master/contrib/diff-highlight | |
export PATH=$PATH:$(brew --cellar git)'/'$(git --version | sed 's/git version //')/share/git-core/contrib/diff-highlight | |
# Add this to your gitconfig. | |
[pager] | |
log = diff-highlight | less | |
show = diff-highlight | less | |
diff = diff-highlight | less |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment