New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Operating System General OS operation information and support

Terminal Question


Post Reply New Thread Subscribe

 
Thread Tools
jpr25

 
Member Since: Jun 22, 2011
Posts: 9
jpr25 is on a distinguished road

jpr25 is offline
Hi All,

I have installed some software and no matter what directory I am in i can run the software by typing the name.

What I want to know is I have some other software where I wish to do the same so no matter where I am I can just type the name and it will run.

Is this possible ? Do I have to put it in certain file ? or is it just case adding the path to my env ?


Any help would be really appreciated

Thanks
QUOTE Thanks
Hamed

 
Member Since: Jun 22, 2011
Posts: 12
Hamed is on a distinguished road

Hamed is offline
From what i know if you want to open an application through terminal, you need to write the full directory path,

eg: open /Applications/Facetime.app
QUOTE Thanks
orbit79

 
orbit79's Avatar
 
Member Since: Feb 20, 2010
Location: Canberra, Australia
Posts: 45
orbit79 is on a distinguished road
Mac Specs: MacBook Pro (Retina, 13-inch, Late 2013)

orbit79 is offline
Quote:
Originally Posted by jpr25 View Post
Hi All,

I have installed some software and no matter what directory I am in i can run the software by typing the name.

What I want to know is I have some other software where I wish to do the same so no matter where I am I can just type the name and it will run.

Is this possible ? Do I have to put it in certain file ? or is it just case adding the path to my env ?


Any help would be really appreciated

Thanks
Open up /Users/YourUserName/.profile in something like textwrangler, which can handle hidden files. Then add something like:

Code:
export PATH="path/to/application":$PATH
I think that should work, let me know how you go.
QUOTE Thanks
jpr25

 
Member Since: Jun 22, 2011
Posts: 9
jpr25 is on a distinguished road

jpr25 is offline
Thanks I will try that

I have another question on terminal you get computername: username and when you change directory you get

computername: ect username is there anyway to get rid of the computername and directory ?

Thanks
QUOTE Thanks
Dysfunction

 
Dysfunction's Avatar
 
Member Since: Mar 17, 2008
Location: Tucson, AZ
Posts: 6,638
Dysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant futureDysfunction has a brilliant future
Mac Specs: 2008 and 2011 15" mbps, late 11 iMac, iPhone 4s, and too many ipods and other stuff

Dysfunction is offline
How to Customize your Terminal Prompt

Although, I have to admit. I love having the directory. On machines I work on that don't have it I find myself issuing pwd a lot more

mike
This machine kills fascists
Got # ? phear the command line!
QUOTE Thanks
jpr25

 
Member Since: Jun 22, 2011
Posts: 9
jpr25 is on a distinguished road

jpr25 is offline
Cool thanks I will try that see how I get on Thanks
QUOTE Thanks
jpr25

 
Member Since: Jun 22, 2011
Posts: 9
jpr25 is on a distinguished road

jpr25 is offline
ok I have another question might well keep in same thread.

I added path so I can type ./script anywhere is there way to get it to auto complete using tab ?
QUOTE Thanks
vansmith

 
vansmith's Avatar
 
Member Since: Oct 19, 2008
Location: Toronto
Posts: 18,352
vansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond reputevansmith has a reputation beyond repute
Mac Specs: 2012 13" MBP (2.5 i5, 8GB)

vansmith is offline
It should autocomplete the name if it is recognized. If it's in your path, you shouldn't need to type the './' and since you seem to need to still do it, I have to think that the app is not in your path. If you execute the following, do you see the directory that the app is in listed?
Code:
echo $PATH

Important Links: Community Guidelines : Use the reputation system if you've been helped.
M-F Blog :: Write for the blog
Writing a Quality Post
QUOTE Thanks

Post Reply New Thread Subscribe


« Macbook either will not sleep, or wakes up. | Network Drive Shortcut on Desktop »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
Terminal has sopped my mac from starting up lezdavies OS X - Operating System 3 08-31-2009 05:13 PM
C++ in terminal frike OS X - Development and Darwin 2 04-04-2008 11:52 AM
The QUESTION Game ToddG Schweb's Lounge 159 08-15-2007 06:25 PM
Terminal problems please help CliveO OS X - Operating System 6 03-20-2007 11:04 AM
Ask 'me' a question... eric Schweb's Lounge 22 01-12-2007 07:33 AM

All times are GMT -4. The time now is 05:46 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?