HELP : using .bash_profile to create aliases still no love

Discussion in 'Mac Programming' started by aneks, May 24, 2008.

  1. aneks macrumors regular

    Joined:
    Aug 29, 2006
    #1
    Hi Gys,

    I know that has been touched on in the past and I read the forums and got this far but I can't seem to get this to work and I know it should.

    I have an application which can be launched via a script called Nuke5.0 it is located here :

    /Applications/Nuke5.0v2b7/Nuke5.0v2b7.app

    So I created a file called .bash_profile and added the following lines

    export PATH=${PATH}:/Applications/Nuke5.0v2b7Nuke5.0v2b7.app
    alias nuke=/Applications/Nuke5.0v2b7/Nuke5.0v2b7.app/Nuke5.0

    and when I use the nuke alias in my bash I get the response

    nuke : unknown command

    so I guess I am doing something wrong. Just don't know what it is !

    What is the correct way to do this ?

    thanks,
    T.
     
  2. sord macrumors 6502

    Joined:
    Jun 16, 2004
    #2
    Try something like:
    Code:
    alias nuke='open -a Nuke5.0v2b7'
    Or
    Code:
    alias nuke='open /Applications/Nuke5.0v2b7/Nuke5.0v2b7.app/Content/MacOS/Nuke'
    (To get the exact name, do:
    Code:
    ls /Applications/Nuke5.0v2b7/Nuke5.0v2b7.app/Content/MacOS/
    )
     
  3. yeroen macrumors 6502a

    yeroen

    Joined:
    Mar 8, 2007
    Location:
    Cambridge, MA
    #3
    Then of course, after you do as suggested above, remember to 'source' your .bash_profile the first time you use it so the aliases get loaded into memory.
     
  4. aneks thread starter macrumors regular

    Joined:
    Aug 29, 2006
    #4
    ah crap it was just syntax. no symboilc link necessary

    alias nuke="/Applications/balh/blah"

    silly silly Bourne Again Shell
     

Share This Page