home *** CD-ROM | disk | FTP | other *** search
- #
- # New Technology Shell Resource file
- #
- # commands listed in this file will be executed at startup of ntsh
- # everything after a # is a comment
-
- echo "$e[1mA$e[0mLPHA $e[1mP$e[0mREVIEW $e[1mV$e[0mERSION of New Technology Shell"
- title "New Technology Shell"
-
- # %HOME% is used by some ntsh functions
- if [ $(UserProfile) ] then
- setenv HOME=$(UserProfile) # Windows NT
- else
- setenv HOME=$(WinDir)/Desktop # Windows 95
- endif
-
- # set scrollback buffer to 200 lines
- # does NOT work in Win95: add a # to disable it
- scrollback 200
-
- # add some color to prompt
- if [ "$(UserName)" =* "Administrator" ] then
- setenv prompt '$e[33m$(ComputerName)$e[0;31m [$e[1m$p$e[0;31m]>$e[32m '
- else
- setenv prompt '$e[33m$(ComputerName)$e[0;36m [$e[1m$p$e[0;36m]>$e[32m '
- endif
-
- #check for new user
- if [ ! "$(HKCU@)" ] then
- # now add some links to registry
- set HKCU@=#0x80000001
- set Folders@='HKCU/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders'
- # additional code
- echo Welcome, $(UserName).
- # remove the '#' to create a link on the user's desktop:
- # ln -s ntsh $(Folders/Desktop)/ntsh
- # you could copy config files etc. now...
- endif
-
- # save location of shell folders to environment variables
- setenv ProgramFiles=$(HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/ProgramFilesDir)
- setenv Desktop=$(Folders/Desktop)
- setenv Favorites=$(Folders/Favorites)
- setenv StartMenu=$(Folders/Start Menu)
-
- # load aliases
- alias -r aliases.cfg
- if ( exist ~/.aliases.cfg ) alias -r ~/.aliases.cfg
-
- # load user's configuration
- if ( exist ~/.ntshrc.cfg ) source ~/.ntshrc.cfg
-
- # end
-