K
K
Khaki Freiberg2015-02-03 21:28:56
bash
Khaki Freiberg, 2015-02-03 21:28:56

How to create quick access to programs through Terminal in Mac os?

Hello, not long ago I watched a review of Sublime Text 2 on YouTube, and there the reviewer had the Mac Os operating system, he simply opened the terminal and wrote the following "Sub" and the Sublime Text 2 program opened. Or say "Sub index.html" and the file index.html opened in Sublime text 2 ready for editing. Also with Google Chrome and other installed programs on his Mac. How to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor, 2015-02-03
@merryjane

This is alias in bash:
ashep.org/2011/ispolzovanie-alias-v-bash/#.VNEjmDWkU_s
stackoverflow.com/questions/8967843/how-do-i-creat...

D
Dmitrii Solovev, 2015-02-04
@dimonnwc3

Have you watched Sorex?
it is better to store aliases in username/.bash_profile, also in this file you can configure everything else
specifically for launching the sublime here:

alias sub="open -a /Applications/Sublime\ text.app"

PS this is for ST 3, for the second it will be necessary to correct the path

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question