# nya V[Y̋ʐݒt@CłB
#	s̃JgfBNgA
#	ϐHOME̎wfBNgɒu
#       Nɓǂ݂Ŏs܂B
#
# ̂ȂǂύXꍇ́AN -r IvV
# pXw肵ĂB

print %0 reading ...

alias cp cp -i
alias rm rm -i
alias mv mv -i
alias bcc bcc32
alias zipinfo unzip -l
alias dir\w dir /w

suffix ny %nyatype% -f
suffix pl perl
suffix rb ruby
suffix jar java -jar
suffix awk awk -f
suffix vbs cscript
suffix js  cscript

option uncompletechar ,;=
option tilde   on
option history on
option backquote  4000
option +keep_bottom_line
# option +standalone
if $standalone = (set) then
    foreach i ( dir mkdir rmdir )
	alias $i $COMSPEC /c $i
    end
endif

bindkey CTRL_P vzlike-previous-history
bindkey CTRL_N vzlike-next-history


if %nyatype% == NYACUS then
    # NYACUS ł̂ݎs镔ɋLq.
    # option start "start """""
endif
option prompt $e[31;40;1m[$p]$e[37;1m

# ֐ which ̒`.
which{
    foreach dir . ${PATH.split}
	foreach ext .com .exe .bat .cmd
	    if exist $dir\$1$ext then
		print found $dir\$1$ext
	    endif
	end 
    end
}

### VzCNȃL[oChɂ֐
### pɂ́uvzbindvƂ̍sĂB
vzbind{
    bindkey CTRL_R xscript:start            xscript:pageup
    bindkey CTRL_S backward                 xscript:backward
    bindkey CTRL_D forward                  xscript:forward
    bindkey CTRL_E vzlike-previous-history  xscript:previous
    bindkey CTRL_X vzlike-next-history      xscript:next
    bindkey CTRL_F forward-word
    bindkey CTRL_A backward-word
}
# vzbind

# ^OWvQƃR}hݒ.
set TAGJUMP=tagjump.vbs

print done
