function in .cshrc

2007-12-24 19:07:00

Hi Gurus

I have a function in .profile but I want to define the same function in .cshrc,
How it can be done?

Here is the function
==============================================
function _cd
{
if [ $TERM = "dtterm" ]
then
if 'cd' "$@"
then
print -n ^[]0\;" `uname -n` `whoami` in $PWD "^G
# Cntrl-V Esc
^G is Cntrl-V Cntrl-G
fi
else
'cd' "$@"
fi
}

==============================================

Thanx in advance.

VS

Comments

Got something to say?

You must be logged in to post a comment.