My dreamhost server's .chsrc file won't parse (and I mean the original file they gave me won't parse. Sigh.) I've fixed what I can, but I can't track down this error. If I try to source it, it says 'unexpected end of file line 22' (the 'endif' line).


Code:
if ( $?prompt ) then
  set autoexpand
  set autolist
  set cdpath =  ~
  set pushdtohome
  set savehist=10000
  set histfile=~(slash).history
  alias ls      'ls --color=auto'
  alias md      mkdir
  alias rd      rmdir
endif
Note: I had to edit the set histfile line, because linuxforums were interpreting them as URLs and not allowing me to post because I'm a new user. Also had to cut out my prompt line, but I don't think it's the problem, as I still get the same issue with it removed.