Files
dotfiles/run_onchange_before_21_diff-so-fancy.sh
2025-07-06 16:21:42 +02:00

10 lines
380 B
Bash

#!/usr/bin/env bash
if [ ! -f "$HOME/.local/bin/diff-so-fancy" ]; then
echo "Installing diff-so-fance into .local/bin"
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