#(English)
#   This file _nya is the script NYAOS execute on starting up.
#   NYAOS reads _nya(s) on these directories in the same order as written:
#    (1) _nya on the same directory as NYAOS.EXE
#    (2) %HOME%\_nya or %USERPROFILE%\_nya
#    (3) The current directory
# I recommend you to
#    - put the original _nya on (1)
#    - put your customized _nya on (2)
#
#(Japanese)
# _nya  NYAOS ̏ݒt@Cł.
#   (1) NYAOS.EXE ̂fBNg
#   (2) %HOME% ̉(`ł %USERPROFILE%)
#   (3) JgfBNg
# ɂ _nya uɑSāvĂяo܂.
#  A(1)==(3) ̏ꍇ́A(3)Ăяo܂.
#
# ʏ
#    - NYAOS.EXE ɓYt _nya (t@C)  (1) 
#    - ̃[UŒ`ݒ (2) 
# zuĂ.

if /%OS%/ == /Windows_NT/ then
    suffix vbs   cscript //nologo
    suffix js    cscript //nologo
endif

suffix ny  nyaos -f
suffix pl  perl
suffix py  python
suffix rb  ruby
suffix jar java -jar
suffix lua lua
suffix awk awk -f

option +backquote
option +history
option +nullcomplete
option +tilde
option +glob
option prompt $e[31;40;1m[$w]$_$$ $e[37;1m
option uncompletechar ,;=``

# _nya.d\ ȉ̃XNvg[h

foreach module "%0.d"\*.ny "%0.d"\*.lua
    if exist $module then
        source $module
    endif
end
