Although it's not really a bad idea to do it that way, it's cleaner to add aliases to your ~/.tcshrc (you may not have one but that's OK).
Here's a snippet from mine:
# Set prompt and prompt manipulation aliases
set hostname=`hostname`
alias setprompt 'set prompt="[${hostname}]`dirs|sed...