|
|
@@ -18,6 +18,7 @@ def main():
|
|
|
dua()
|
|
|
dust()
|
|
|
eza()
|
|
|
+ fx()
|
|
|
git_whence()
|
|
|
jujutsu()
|
|
|
lazygit()
|
|
|
@@ -140,6 +141,26 @@ def eza():
|
|
|
tar.extract('./eza', CURRENT_DIR)
|
|
|
tarball_path.unlink()
|
|
|
|
|
|
+def fx():
|
|
|
+ if platform.system() == 'Darwin':
|
|
|
+ print('$ brew install fx')
|
|
|
+ subprocess.run(['brew', 'install', 'fx'], check=True)
|
|
|
+ return
|
|
|
+ else:
|
|
|
+ assert platform.system() == 'Linux'
|
|
|
+
|
|
|
+ if (CURRENT_DIR / 'fx').exists():
|
|
|
+ print_gray('fx already downloaded')
|
|
|
+ return
|
|
|
+
|
|
|
+ client = httpx.Client()
|
|
|
+ arch = platform.machine()
|
|
|
+ if arch == 'aarch64':
|
|
|
+ arch = 'arm64'
|
|
|
+ url = f'https://github.com/antonmedv/fx/releases/latest/download/fx_linux_{arch}'
|
|
|
+ download(client, url, CURRENT_DIR / 'fx')
|
|
|
+ os.chmod(CURRENT_DIR / 'fx', 0o755)
|
|
|
+
|
|
|
def git_whence():
|
|
|
if platform.system() == 'Darwin':
|
|
|
print('$ brew install raylu/formulae/git-whence')
|