where is my environment file for shell?

Elliotjnewman

Registered
I run Linux and OSX. In Linux I have shortcuts for my apps, which I make in the env.csh text file, for example:

alias m5 /software/alias/maya/5.0/maya5.0.1

so this launched the app maya 5.0 when I type m5 in a shell.

where is this file in osx?
 
bobw - I know where the terminal app is, what I cant find is the env file.

You know the command "env" lists your environment, well, where is that file so I cant edit it? I mean is there a text file somewhere that I can open?
 
Nope, not in there, Bob.

/etc/profile
/etc/bashrc
~/.profile


These are the files (and order) for bash (and sh).

If you're using csh as your shell, then the files are:

/etc/csh.cshrc
/etc/csh.login
/etc/csh.logout


(I use bash, so I'm not sure if csh will read anything in your home directory.)
 
ok, I really dont get it.

I have just searched for

/etc/profile
/etc/bashrc
~/.profile

and

/etc/csh.cshrc
/etc/csh.login
/etc/csh.logout

and

.cshrc

and I have no results. What do you mean by "/etc/profile"?
 
Back
Top