M
M
MrBe2014-06-06 20:02:35
macOS
MrBe, 2014-06-06 20:02:35

How to set system variables in mac os x?

Hello.
I recently became the owner of a macbook, and decided to use the full potential of the unix system terminal. Actually the question is: How to register system variables in mac os?
Example:
$ open -a sublime index.html
instead of
$ open -a /Applications/"Sublime Text" index.html

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Maxim Samoilov, 2014-06-06
@MrBe

Not exactly the same, but might solve the problem:
Enjoy:

sublime index.html # Открыть index.html
sublime . # Открыть текущую директорию

S
Sharmankin, 2016-02-07
@Sharmankin

And don't forget to type
# source ~/.bash_profile
so as not to get bitter disappointment caused by the need to prescribe everything again after a reboot

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question