bootstrap-root: added diff-highlight creation
This commit is contained in:
parent
8f1572f322
commit
a8f4b37da2
1 changed files with 8 additions and 0 deletions
|
@ -54,3 +54,11 @@ cargo install --root /usr/local --git https://github.com/mookid/diffr
|
||||||
# shellcheck disable=SC2086
|
# shellcheck disable=SC2086
|
||||||
curl $CURLOPT -o /usr/local/sbin/cleanup.sh https://gist.github.com/schtobia/f02deeaf2fd20b23ae9fcf0f451cc858/raw/cleanup.sh \
|
curl $CURLOPT -o /usr/local/sbin/cleanup.sh https://gist.github.com/schtobia/f02deeaf2fd20b23ae9fcf0f451cc858/raw/cleanup.sh \
|
||||||
&& chmod u+x /usr/local/sbin/cleanup.sh
|
&& chmod u+x /usr/local/sbin/cleanup.sh
|
||||||
|
|
||||||
|
# diff-highlight from git is necessary for tig
|
||||||
|
if [ ! -x /usr/local/bin/diff-highlight ];
|
||||||
|
then
|
||||||
|
echo "#!/usr/bin/perl" > /usr/local/bin/diff-highlight \
|
||||||
|
&& cat /usr/share/doc/git/contrib/diff-highlight/DiffHighlight.pm /usr/share/doc/git/contrib/diff-highlight/diff-highlight.perl >> /usr/local/bin/diff-highlight \
|
||||||
|
&& chmod +x /usr/local/bin/diff-highlight
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in a new issue