From 879242002ae8a81be0a3df0708c673fe4ce5fd73 Mon Sep 17 00:00:00 2001 From: daniel Date: Sun, 19 Mar 2023 12:52:31 +0100 Subject: [PATCH] install diff-so-fancy --- install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/install.sh b/install.sh index c4f27bf..6e864fc 100755 --- a/install.sh +++ b/install.sh @@ -33,6 +33,14 @@ if [ ! -d "$HOME/.fzf" ]; then fi fi +# diff-so-fancy && diff-highlight +pip install --user diff-highlight +if [ ! -f "$HOME/.local/bin/diff-so-fancy" ]; then + if [ ! -d "$HOME/.local/lib/diff-so-fancy" ]; then + git clone --depth 1 https://github.com/so-fancy/diff-so-fancy.git $HOME/.local/lib/diff-so-fancy + fi + ln -s $HOME/.local/lib/diff-so-fancy/diff-so-fancy $HOME/.local/bin/diff-so-fancy +fi # vimplug if [ ! -d "$HOME/.vim/autoload" ]; then