What I'm most wondering here is if anyone here can peek at this code and find where I use something that's ok to use in bash, but not in csh. I have noticed that csh does not support certain functions that bash does.
In case anyone was wondering, the resulting prompt looks like this: command history, exit status, username, hostname, current directory:
 (255) username@hostname ~ $
The number in square braces is the current command's number in the shell history, and the number in round braces is the exit status code of the previous command (if it wasn't 0). Next is the username, followed by the short hostname. The hostname is colored differently based on the OS and distribution, is bold if logged into a remote terminal, and non-bold if at a local terminal. Lastly is the current working directory, and then, of course, the $ at the end.
A root prompt is the same, save a couple differences.
 (255) hostname ~ #
The username is omitted, and the $ changes to a bold #.
Again, the point here isn't to try and comprehend this mess. It's to see if someone can point out where I include functions that csh does not support, and maybe offer a few suggestions as to what to use instead.