Tag: mac

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

    by

    in

    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]…

  • Homebrew: “Permission denied @ rb_file_s_symlink…”

    In case you encounter this error below when doing brew update: ==> Homebrew has enabled anonymous aggregate formula and cask analytics. Read the analytics documentation (and how to opt-out) here: https://docs.brew.sh/Analytics No analytics have been recorded yet (nor will be during this `brew` run). ==> Homebrew is run entirely by unpaid volunteers. Please consider donating:…

  • 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,…

  • 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

  • Install sqlcmd on Mac OS X

    In case you need to run SQL Server scripts from your Mac, do the following to install (NOTE: I use HomeBrew.): From the terminal, type: brew tap microsoft/mssql-release https://github.com/Microsoft/homebrew-mssql-release ACCEPT_EULA=y brew install –no-sandbox msodbcsql mssql-tools You should see something like in the screenshot. Type “YES” if prompted and be on your way. Once done, type:…