Setting PATH in tcsh on Terminal start
Ubuntu 8.04, April 2008
Terminal 2.22.1, terminal emulator for the GNOME desktop
In my .tcshrc file, pretty much copied from OS X, I add $HOME/bin to the PATH provided by Terminal with the line.
setenv PATH $HOME/bin:$PATH
The result shows two copies of $HOME/bin in my PATH.
[~]> echo $PATH
/home/doug/
The bash/.profile seems to do that by looking for $HOME/bin and adding it if it exists but there seems to be nothing like that for tcsh or csh in /etc/. These lines seem to be the key to what's happening in tcsh.
# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
PATH=
fi
source $HOME/.profile
fails - not surprisingly. Is the terminal app processing .profile anyway?
I can probably test for duplicates but I'd really like to know what's happening. Is Terminal executing bash before it generates a tcsh process? Is there a startup file I can't find? My login shell is specified as tcsh in passwd.
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu tcsh Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Doug McNutt
- Solved:
- Last query:
- Last reply: