setting up alias for command line

22 views
Skip to first unread message

foggybog

unread,
Jun 18, 2008, 2:16:24 AM6/18/08
to nukeuser

Can anyone help me with setting up an alias for Nuke? (MacOSX)

The manual gives the string "alias nuke /Applications/Nuke5.0v2/
Nuke5.0v2.app/Nuke5.0"
and this helpful tip--
--You can add aliases to a .cshrc file in your home directory so that
they are activated each time you
open a shell. See your Systems Administrator for help setting this
up.

This is my home machine.

thanks

Michael Morehouse

unread,
Jun 18, 2008, 9:26:13 AM6/18/08
to nuke...@googlegroups.com
What version? The manual string is for OSX, but not a fresh Leopard
install (Leopard defaults to bash for the terminal and there's
no .cshrc file).

If you're in Leopard, open Terminal, enter 'open .profile' and your
bash profile will open up. In there you need to add:

1) The path to your executable to the $PATH environment variable:

export PATH=$PATH:/Applications/Nuke5.0v2/Nuke5.0v2.app

2) An alias for the executable, which must be in the directory on the
end of that path:

alias nuke="Nuke5.0"

You could also just do alias nuke ="the entire bloody string to the
executable", but adding it to the PATH has other benefits.

foggybog

unread,
Jun 18, 2008, 11:52:54 AM6/18/08
to nukeuser

Thanks Michael,

Actually, I am on 10.4.11 (Tiger)

--David

Michael Morehouse

unread,
Jun 18, 2008, 11:57:42 AM6/18/08
to nuke...@googlegroups.com
Ok, then you probably aren't running bash as your terminal ... instead try:

Run Terminal, and type in:

open -e ~/.cshrc

If that pops up a file names .cshrc, you can add the same text describes below to export the PATH and add the alias.  Once done you can run Nuke by opening the Terminal and typing in:

nuke

Michael

Randy Little

unread,
Jun 18, 2008, 12:21:12 PM6/18/08
to nuke...@googlegroups.com
well its not hard to type csh in whatever terminal and change it.   You can also just perma change it in the prefs for the terminal to whatever you like.   tcsh csh bash zsh, its all in there.  
--
Randy S. Little
http://reel.rslittle.com
http://imdb.com/name/nm2325729/
http://www.linkedin.com/in/rslittle
http://www.creativeheads.net/jsprofile.aspx?j=d5406b5d61&spi=0

foggybog

unread,
Jun 18, 2008, 4:47:16 PM6/18/08
to nukeuser

It looks like I may have bash after all. When I type "nuke" at the
command line, I get the following: "-bash: nuke: command not found".

There were no .cshrc or .profile files in my home directory when I
started. I have since created a .cshrc file in my attempts to solve
this, but so far it is not working.

I was able to follow the directions in creating an environment.plist
file for Shake on my old machine, but this one is still eluding me!

Thanks for the help.

--David


On Jun 18, 9:21 am, "Randy Little" <randyslit...@gmail.com> wrote:
> well its not hard to type csh in whatever terminal and change it. You can
> also just perma change it in the prefs for the terminal to whatever you
> like. tcsh csh bash zsh, its all in there.
>
> On Wed, Jun 18, 2008 at 8:57 AM, Michael Morehouse <michaelfi...@gmail.com>
> wrote:
>
>
>
> > Ok, then you probably aren't running bash as your terminal ... instead try:
> > Run Terminal, and type in:
>
> > open -e ~/.cshrc
> > *
> > *
> > If that pops up a file names .cshrc, you can add the same text describes
> > below to export the PATH and add the alias. Once done you can run Nuke by
> > opening the Terminal and typing in:
>
> > *nuke*

Randy Little

unread,
Jun 18, 2008, 5:18:38 PM6/18/08
to nuke...@googlegroups.com
type csh in your bash terminal then it will be a Csh shell.
then type nuke

Deke Kincaid

unread,
Jun 18, 2008, 5:44:11 PM6/18/08
to nuke...@googlegroups.com
I believe osx only has tcsh not csh, so you will need to add it to a
.tcshrc file instead.

-deke

Randy Little

unread,
Jun 18, 2008, 5:58:14 PM6/18/08
to nuke...@googlegroups.com
No it has bash csh tsch and zsh.  I have used all of them just today because I sent the email.
Message has been deleted

Randy Little

unread,
Jun 18, 2008, 6:28:16 PM6/18/08
to nuke...@googlegroups.com
launch the terminal. 
then make a new terminal window.  then type csh

or go into prefs and just set your shell to csh

hit command shift G all and once and then paste this in
/bin

you will see all your bin files there and you will see the different console that live there.

I even have ksh who uses korn shell?


On Wed, Jun 18, 2008 at 3:22 PM, foggybog <fogg...@gmail.com> wrote:


So right now, I have a file called .cshrc which has the following
lines in it:
export PATH=$PATH:/Applications/Nuke5.0v2/Nuke5.0v2.app
alias nuke="Nuke5.0"

When I type "csh" I get this message:
csh: Bad : modifier in $ (/).
and my prompt changes to [(ip address):~] davidaug%
from there I type "nuke" and get
csh: nuke: Command not found.

Where should I go from here?

--David


On Jun 18, 2:58 pm, "Randy Little" <randyslit...@gmail.com> wrote:
> No it has bash csh tsch and zsh.  I have used all of them just today because
> I sent the email.
>
>
>
> On Wed, Jun 18, 2008 at 2:44 PM, Deke Kincaid <dekekinc...@gmail.com> wrote:
>
> > I believe osx only has tcsh not csh, so you will need to add it to a
> > .tcshrc file instead.
>
> > -deke
>

foggybog

unread,
Jun 18, 2008, 7:51:35 PM6/18/08
to nukeuser

So right now, I have a file called .cshrc which has the following
lines in it:
export PATH=$PATH:/Applications/Nuke5.0v2/Nuke5.0v2.app
alias nuke="Nuke5.0"

When I type "csh" I get this message:
csh: Bad : modifier in $ (/).
and my prompt changes to [(ip address):~] davidaug%
from there I type "nuke" and get
csh: nuke: Command not found.

Where should I go from here?

--David

Deke Kincaid

unread,
Jun 18, 2008, 8:01:09 PM6/18/08
to nuke...@googlegroups.com
export is a bash command not tcsh/csh.

setting the path in csh looks like this:
set path = ($path /Applications/Nuke5.0v2/Nuke5.0v2.app )

btw you can set your default shell in the system preferences > accounts

-deke

Michael Morehouse

unread,
Jun 18, 2008, 8:08:25 PM6/18/08
to nuke...@googlegroups.com
Or you can do it in Terminal preferences; I'll be damned if I can find
it under Accounts in Leopard. In Startup choose Shells Open with:
Command (complete path), and change that to /bin/bash.

Deke Kincaid

unread,
Jun 18, 2008, 8:33:47 PM6/18/08
to nuke...@googlegroups.com

Michael Morehouse

unread,
Jun 18, 2008, 8:38:39 PM6/18/08
to nuke...@googlegroups.com
Yah, so that could have been less obvious.

foggybog

unread,
Jun 25, 2008, 6:00:38 PM6/25/08
to nukeuser

So now I know how to switch to the csh shell, but I still can't get
the path or alias commands to work. Does the .schrc file need more
than these two lines?

set path = ($path /Applications/Nuke5.0v2/Nuke5.0v2.app )
alias nuke="Nuke5.0"

thanks,

--David

On Jun 18, 5:38 pm, Michael Morehouse <michaelfi...@gmail.com> wrote:
> Yah, so that could have been less obvious.
>
> On Jun 18, 2008, at 5:33 PM, Deke Kincaid wrote:
>
>
>
> > It is slightly hidden
> >http://www.macosxhints.com/article.php?story=20071025221744166&query=...
>
> > -deke
>
> > On Wed, Jun 18, 2008 at 17:08, Michael Morehouse <michaelfi...@gmail.com
> > > wrote:
>
> >> Or you can do it in Terminal preferences; I'll be damned if I can
> >> find
> >> it under Accounts in Leopard. In Startup choose Shells Open with:
> >> Command (complete path), and change that to /bin/bash.
>
> >> On Jun 18, 2008, at 5:01 PM, Deke Kincaid wrote:
>
> >>> export is a bash command not tcsh/csh.
>
> >>> setting the path in csh looks like this:
> >>> set path = ($path /Applications/Nuke5.0v2/Nuke5.0v2.app )
>
> >>> btw you can set your default shell in the system preferences >
> >>> accounts
>
> >>> -deke
>

Randy Little

unread,
Jun 25, 2008, 6:07:51 PM6/25/08
to nuke...@googlegroups.com

foggybog

unread,
Jun 25, 2008, 6:32:50 PM6/25/08
to nukeuser

Sorry, that was a typo.
.cshrc

--David

On Jun 25, 3:07 pm, "Randy Little" <randyslit...@gmail.com> wrote:
> well its needs to be called .cshrc unless that was a typo.
>
> Randy S. Littlehttp://reel.rslittle.comhttp://imdb.com/name/nm2325729/http://www.linkedin.com/in/rslittlehttp://www.creativeheads.net/jsprofile.aspx?j=d5406b5d61&spi=0
Reply all
Reply to author
Forward
0 new messages