################################################################
#  PJE-0.1 桼ե륵ץ for csh,tcsh
#                       MATSUMOTO Shoji (shom@i.h.kyoto-u.ac.jp)
#                            Time-stamp: <97/09/06 20:51:19 pje>

# csh, tcsh ưȾ˼¹Ԥޤ

echo source .cshrc

set history=100
set savehist=100

# prompt 
set promptchars='%#'
set prompt="%m:%~%# "

# color-ls (ls եˤʤޤ)
#  ~/.dir_colors
if { which dircolors >& /dev/null } then
  eval `dircolors -c`
else
  setenv LS_OPTIONS '-F -b -T 0';
  alias ls '/bin/ls $LS_OPTIONS ';
endif
setenv LS_OPTIONS "$LS_OPTIONS -N "

alias ll 'ls -l '
alias la 'ls -a '

# ghostview  gv Ȥ
alias ghostview gv

# kterm,xterm Υȥ pwd ɽ
if ($?TERM) then
    if ($TERM == "kterm" || $TERM == "xterm") then
	alias precmd 'echo -n "]2;${HOST}:`dirs`]1;${HOST}:`dirs`"'
	alias su 'echo "]2;su]1;su" ; su'
	alias rsh 'echo "]2;rsh]1;rsh" ; rsh'
	alias rlogin 'echo "]2;rlogin]1;rlogin" ; rlogin'
	alias telnet 'echo "]2;telnet]1;telnet" ; telnet'
    endif
endif
