Skip to content

Instantly share code, notes, and snippets.

@gabrielbarros
Created March 6, 2024 20:09
Show Gist options
  • Save gabrielbarros/84f834ea23266985a26845f228e87c7b to your computer and use it in GitHub Desktop.
Save gabrielbarros/84f834ea23266985a26845f228e87c7b to your computer and use it in GitHub Desktop.
Install and update diff-so-fancy
#!/usr/bin/env bash
set -euo pipefail
echo 'Installing diff-so-fancy...'
curl -s https://api.github.com/repos/so-fancy/diff-so-fancy/releases/latest | \
jq -r '.assets[].browser_download_url' | wget -i -
sudo mv diff-so-fancy /usr/local/bin
sudo chmod a+x /usr/local/bin/diff-so-fancy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment