Results 1 to 8 of 8
  1. #1
    Terminal Question

    Member Since
    Jun 22, 2011
    Posts
    9
    Terminal Question
    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

  2. #2
    Terminal Question

    Member Since
    Jun 22, 2011
    Posts
    12
    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

  3. #3
    Terminal Question
    orbit79's Avatar
    Member Since
    Feb 20, 2010
    Location
    Canberra, Australia
    Posts
    45
    Specs:
    MacBook Pro (Retina, 13-inch, Late 2013)
    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.

  4. #4
    Terminal Question

    Member Since
    Jun 22, 2011
    Posts
    9
    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

  5. #5
    Terminal Question
    Dysfunction's Avatar
    Member Since
    Mar 17, 2008
    Location
    Tucson, AZ
    Posts
    6,821
    Specs:
    Way... way too many specs to list.
    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!

  6. #6
    Terminal Question

    Member Since
    Jun 22, 2011
    Posts
    9
    Cool thanks I will try that see how I get on Thanks

  7. #7
    Terminal Question

    Member Since
    Jun 22, 2011
    Posts
    9
    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 ?

  8. #8
    Terminal Question
    vansmith's Avatar
    Member Since
    Oct 19, 2008
    Location
    Toronto
    Posts
    19,395
    Specs:
    2012 13" MBP (2.5 i5, 8GB)
    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

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Terminal Question
    By pigoo3 in forum OS X - Apps and Games
    Replies: 2
    Last Post: 10-17-2014, 01:52 AM
  2. terminal question
    By Goavs18 in forum Switcher Hangout
    Replies: 3
    Last Post: 04-15-2012, 01:24 PM
  3. Question About Terminal
    By Ciwan in forum Switcher Hangout
    Replies: 6
    Last Post: 03-04-2011, 08:24 PM
  4. Terminal question
    By aecaudel in forum OS X - Operating System
    Replies: 0
    Last Post: 10-25-2008, 03:41 AM
  5. C++ to Terminal Question
    By 9homie in forum OS X - Development and Darwin
    Replies: 8
    Last Post: 09-17-2008, 03:09 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •