From 4678e04654b15292c2cb0cb43cfcea0057df7ba3 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Wed, 22 Feb 2023 07:50:11 +0000 Subject: [PATCH] feat(iterm2): install to macOS /Applications/ rather than ~/Applications/ (works better) --- iterm2/README.md | 13 ++++++++++++- iterm2/install.sh | 8 ++++---- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/iterm2/README.md b/iterm2/README.md index beed9d5..07d7332 100644 --- a/iterm2/README.md +++ b/iterm2/README.md @@ -5,6 +5,17 @@ tagline: | iTerm2: a terminal emulator for macOS that does amazing things. --- +To update versions, use iTerm2's built-in software update. + +### Files + +These are the files / directories that are created and/or modified with this +install: + +```text +/Applications/iTerm.app/ +``` + ## Cheat Sheet > The only bad thing about iTerm2 is that it's so seamless and intuitive that @@ -22,7 +33,7 @@ iTerm2 supports a lot of nifty features, including: - GPU-accelerated **Important**: Unlike most packages, iTerm2 will be installed to -`~/Applications`. +`/Applications`. ### How to make the best of iTerm2 diff --git a/iterm2/install.sh b/iterm2/install.sh index c3f6de8..254fb08 100644 --- a/iterm2/install.sh +++ b/iterm2/install.sh @@ -25,11 +25,11 @@ _install_iterm2() { exit 1 fi - if [ -d ~/Applications/iTerm.app ]; then - mv ~/Applications/iTerm.app "${WEBI_TMP}/iTerm.app-webi.bak" + if [ -d /Applications/iTerm.app ]; then + mv /Applications/iTerm.app "${WEBI_TMP}/iTerm.app-webi.bak" fi - mkdir -p ~/Applications/ - mv "${WEBI_TMP}/iTerm.app" ~/Applications/ + mkdir -p /Applications/ + mv "${WEBI_TMP}/iTerm.app" /Applications/ } _install_iterm2