diff --git a/install-mac-apps.sh b/install-or-update-wezterm.sh similarity index 70% rename from install-mac-apps.sh rename to install-or-update-wezterm.sh index 1317cdb..226656c 100755 --- a/install-mac-apps.sh +++ b/install-or-update-wezterm.sh @@ -15,6 +15,7 @@ LATEST_WEZTERM=$(newest_wezterm_release) install_latest_wezterm() { curl -Lo wezterm.zip "$LATEST_WEZTERM" ouch d wezterm.zip + rm -rf /Applications/WezTerm.app mv WezTerm-macos-*/WezTerm.app /Applications/ && rm -rf wezterm.zip WezTerm-macos-* } @@ -26,15 +27,3 @@ else install_latest_wezterm fi fi - -[ -d /usr/local/bin ] || sudo mkdir /usr/local/bin - -install_typst() { - echo "manually installing typst" - curl -sLO https://github.com/typst/typst/releases/download/22-03-21-2/typst-x86_64-apple-darwin.tar.gz - ouch d typst*.tar.gz - sudo install -m 755 typst*/typst /usr/local/bin/ - rm -rf ./typst* -} - -[ -e "/usr/local/bin/typst" ] || install_typst