Category: Apple

  • Workaround for Homebrew: “terraform@0.12 has been disabled because it is not supported upstream!”

    I needed to install an older version of Terraform on my work Mac, but got this error: Error: terraform@0.12 has been disabled because it is not supported upstream! I tried to edit terraform@0.12 and tried to install without success. This is what worked: HOMEBREW_NO_INSTALL_FROM_API=1 brew install terraform@0.12 ?  Source brew install terraform@0.12 Error: terraform@0.12 has been…

  • oh-my-zsh: Insecure completion-dependent directories detected

    In case you encounter this error on installing oh-my-zsh, do the chmod commands below. ?  ~ source ~/.zshrc                                                                                                   [oh-my-zsh] Insecure completion-dependent directories detected: drwxrwxr-x  16 Anton.Perez  admin  512 May  4 10:42 /usr/local/share [oh-my-zsh] For safety, we will not load completions from these directories until [oh-my-zsh] you fix their permissions and ownership and restart zsh. [oh-my-zsh] See the above list for…

  • GitHub: The unauthenticated git protocol on port 9418 is no longer supported

    GitHub recently improved security, so you may get the error below like I did when I tried to install oh-my-zsh on a new Mac. Anton.Perez@amp ~ % sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" Cloning Oh My Zsh… fatal: remote error:   The unauthenticated git protocol on port 9418 is no longer supported. Please see https://github.blog/2021-09-01-improving-git-protocol-security-github/ for more…

  • iTerm2: Add Keystroke to move between words

    ,

    On a Mac, I use iTerm2 as my default terminal due to the added features, such as auto-copy and the ability to split multiple terminals. One nuance was not having the ability to move between words (like in vim); however, I found the below how-to on Stack Overflow — where else? 🙂 Go to Preferences,…

  • Mac OS Catalina: “invalid active developer path” error

    After upgrading to Catalina, I encountered the error below. Seems Xcode was no longer available. xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Try the following in your terminal; otherwise, head to https://developer.apple.com/download/more/ and download Xcode manually. xcode-select –install

  • How to add environment variables in Mac OS X

    ,

    Adding here for reference (tried this in Mac OS X Mojave): # To set an environment variable, enter the following command: launchctl setenv variable "value" # To find out if an environment variable is set, use the following command: launchctl getenv variable # To clear an environment variable, use the following command: launchctl unsetenv variable