Browse Source

install_extras: add macos support

raylu 2 years ago
parent
commit
e742923c01
1 changed files with 5 additions and 0 deletions
  1. 5 0
      install_extras.py

+ 5 - 0
install_extras.py

@@ -14,6 +14,11 @@ def main():
 	delta()
 
 def delta():
+	if platform.system() == 'Darwin':
+		print('$ brew install git-delta')
+		subprocess.run(['brew', 'install', 'git-delta'], check=True)
+		return
+
 	client = httpx.Client()
 	r = client.get('https://api.github.com/repos/dandavison/delta/releases/latest',
 			headers={'Accept': 'application/vnd.github+json', 'X-GitHub-Api-Version': '2022-11-28'})