Do you have the setup that is mentioned in
/usr/share/tcsh/examples/README ? If so you'll want to put
source /sw/bin/init.csh
as a line in ~/Library/init/tcsh/path, instead. Or, better yet, put
source /sw/bin/init.csh
into ~/.cshrc, and then put
source ~/.cshrc
in ~/Library/init/tcsh/path
The problem is that your .login calls /usr/share/tcsh/examples/login,
which explicitly resets the PATH after you've called .tcshrc . Note
that you don't want just to set the PATH to include /sw/bin, because
you'll need more in your PATH, and need to set other environment
variables (e.g. MANPATH).
On Mon, 2003-03-31 at 10:48, Thomas Davie wrote:
> Hi,
> I've been having trouble setting up my .tcshrc file to set the path
> variable to include /sw/bin... Can anyone see what I've done wrong
> here. Note that $ANT_HOME does get set.
>
> ##
> # TCSH Expanded C-Shell INITIALIZATION FILE
> #
> # Wilfredo Sanchez Jr. | [EMAIL PROTECTED]
> # July 09, 1992
> #
> # MIT Project Athena
> #
> # ORIGINAL SOURCES: /usr/athena/lib/init/cshrc (ATHENA REL 7.3P)
> ##
>
> set default_tcsh_initdir = /usr/share/tcsh/examples/
> set user_tcsh_initdir = ~/Library/init/tcsh
>
> if (-r "${user_tcsh_initdir}") then
> set tcsh_initdir = "${user_tcsh_initdir}"
> else
> set tcsh_initdir = "${default_tcsh_initdir}"
> endif
>
> # SET UP HOST-DEPENDENT VARIABLES, ETC.
> set host = `hostname`
> set host = `echo $host | tr A-Z a-z`
>
> set user=`whoami`
>
> setenv HOST "${host}"
> setenv USER "${user}"
>
> # User ID (csh doesn't set $uid, tcsh does)
> if (! $?uid) set uid = `id | cut -d = -f 2 | cut -d \( -f 1`
>
> # MISCELLANEOUS SETS
> if (! $?version) set version = "unknown"
>
> # Non-root users
> if ($uid) then
> unset autologout
> else
> # Avoid closing of Terminal windows when logged in as root
> if ($?TERM_PROGRAM && $?SHLVL) then
> if ("$SHLVL" == "1") unset autologout
> endif
> endif
>
> # ENVIRONMENT SETUP
>
> if ($?prompt) set interactive
>
> if (-r "${default_tcsh_initdir}/tcsh.defaults") then
> source "${default_tcsh_initdir}/tcsh.defaults"
> endif
>
> if (! $?ENV_SET) then # Top-most shell
> if (-r "${default_tcsh_initdir}/environment" && ($?prompt ||
> $?XSESSION)) then
> source "${default_tcsh_initdir}/environment"
> endif
> else # NON ENV_SET, 2nd+ shells
> # noop
> endif
>
> # DEFAULT KEY BINDINGS
> if ($?interactive) then
> if ("${version}" =~ "tcsh"*) bindkey "^R" i-search-back
> endif
>
> # DEFAULT LOGIN SOURCES
> if (-r "${tcsh_initdir}/rc.mine") source "${tcsh_initdir}/rc.mine"
>
> if ($?interactive) then
> # These aren't useful for non-interactive sessions
> if (-r "${default_tcsh_initdir}/aliases" && ! $?noalias) then
> source "${default_tcsh_initdir}/aliases"
> endif
> if (-r "${default_tcsh_initdir}/completions" && ! $?noalias &&
> $?version) then
> if ("$version" =~ tcsh*) source
> "${default_tcsh_initdir}/completions"
> endif
> endif
>
> # Ant setup
> setenv ANT_HOME "/Applicaitons/apache-ant-1.5.2"
>
> # FINK
> setenv PATH $PATH":/sw/bin"
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> Fink-users mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/fink-users
--
Alexander K. Hansen
Associate Research Scientist, Columbia University
visiting MIT Plasma Science and Fusion Center
Levitated Dipole Experiment
175 Albany Street, NW17-219
Cambridge, MA 02139-4213
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
Fink-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/fink-users