#setenv
setenv LANG ja_JP.EUC
setenv LC_ALL ja_JP.EUC
setenv LC_COLLATE C
setenv LC_TIME C
setenv PERL_BADLANG 0

#path
set path=( $path /usr/local/bin )
set path=( $path /usr/local/sbin )
set path=( $path /usr/local/mybin )


#prompt
set prompt='[%{%m:\e[31m%c3\e[00m%}] % '


#alias
alias Emacs    /Applications/Emacs.app/Contents/MacOS/Emacs
alias ls       gnuls --color=auto -F
#alias ll       gnuls --color=auto -FAL
alias ll      'ls -lh'
alias l       gnuls --color=auto -Fl
alias la      ls -a
alias ld      "ls -d */"

alias cp      cp -i
alias rm      rm -i
alias ccc     gcc -Wall
alias vi      jvim
alias roboc   "cc -o robo -framework CoreFoundation -framework IOKit" 


#complete
complete cd     'p/*/d/'
complete rmdir  'p/*/d/'
complete mkdir  'p/*/d/'

complete platex   'p/*/f:*.tex/'
complete dvipdfmx 'p/*/f:*.{dvi,DVI}/'

complete cc     'c/-[IL]/d/' 'n/-c/f:*.c/' 'n/*/f:*.[co]/'
complete gcc    'p/*/f:*.{c,C,cc,c++,cpp}/'
complete java   'p/*/`ls *.class|sed s:\.class::`/'
complete javac  'p/*/f:*.java/'

complete less   'p/*/f:*{}/'
complete cat    'p/*/f:*{}/'
complete lv     'p/*/f:*{}/'
complete vi     'n/*/f:^*.{o,a,so,so.*}/'
complete more   'n/*/f:^*.{o,a,so,so.*}/'

complete tar    'n/{,-}[crtux]*z*f/f:*.{tar.gz,tar.Z,tgz,TGZ}/' \
                'n/{,-}[crtux]*f/f:*.tar/' \
                'n/*/f/'

complete 'tgif*'  'n/*/f:*.obj/'
