MacOS · Technical

New Terminal Setup Steps for MacOS

Here are the shortcuts and Terminal setup commands I used with MacOS.

Create a command to open Sublime from CLI.

sudo mkdir /usr/local/bin

sudo ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/subl

Edit the `~/.bash_profile` file, and include the following.

alias edithosts='subl /etc/hosts'

Update the `/etc/hosts` file to block unwanted sites. Use this example hosts file.