These instructions assume you’re using the Terminal app out of the box, without ZSH or any fancy prompts like that. I trust you will be able to adapt these instructions yourself if you do.

Step 1 : Create a symlink called sublime

sudo ln -s "/Applications/Sublime" /usr/local/bin/sublime

Step 2 : Check that your system profile can find the symlink you just created.

open ~/.bash_profile

Step 3 : Add both these lines & then save the file :

alias subl="open -a /Applications/Sublime\"

export PATH=/usr/local/bin:$PATH

Step 4 : Reload your bash_profile :

source ~/.bash_profile

Done ! You can now navigate to any of your code/script folders in Terminal and open them in Sublime with the following commands :

subl .
subl .zshrc

Serious, You gotta get these!


Sublime ->  Command + Shift + P -> Install Paskages -> Emmet

Use Terminal and run commands

subl ~/.zshrc

then we can add commands:

# In line 88 change aliases text:
# Example aliases 
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
alias db="cd ~/Dropbox/"
alias doc="cd ~/Documents/"
alias zs="subl ~/.zshrc"
alias gum="git pull upstream master"


Solution : At first , run following script on Terminal app to create specific symlink.

ln -s "/Applications/Sublime" /usr/local/bin/subl


subl .

 Hit return, it should instantly pop-up Sublime app.

The first you need root on your Mac → Terminal sudo su and confirm password. Then you need setup iTerm2 and Homebrew ruby -e "$(curl -fsSL" and any plugins for angular.

-- commands sh#
brew install git
npm install -g jshint
npm install -g gulp

-- setup snippets and plugins