Skip to content

Instantly share code, notes, and snippets.

@AvnerCohen
Created April 25, 2022 18:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AvnerCohen/e16064f6b8e83a506bb9ae0c54f666ce to your computer and use it in GitHub Desktop.
Save AvnerCohen/e16064f6b8e83a506bb9ae0c54f666ce to your computer and use it in GitHub Desktop.
Find and Install On Mac, Latest Iterm2
#!/bin/bash -e
URL_TO_DOWNLOAD=$(curl -s "https://iterm2.com/downloads.html" | grep "https://iterm2.com/downloads/stable/" | head -1 | awk '/http/{ print $4 }' | sed -e 's/"/\n/g' | sed -n '2p')
curl -L -s -o iTerm2.zip $URL_TO_DOWNLOAD
unzip iTerm2.zip
mv iTerm.app /Applications
rm iTerm2.zip
echo "Done - Installed - ${URL_TO_DOWNLOAD}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment