home *** CD-ROM | disk | FTP | other *** search
/ PC Direkt 1998 #11 / PCDIREKT_1198.bin / data / Util / ntsh / NTSHRC.CFG < prev    next >
Encoding:
Text File  |  1997-10-14  |  1.6 KB  |  54 lines

  1. #
  2. #  New Technology Shell Resource file
  3. #
  4. # commands listed in this file will be executed at startup of ntsh
  5. # everything after a # is a comment
  6.  
  7. echo "$e[1mA$e[0mLPHA $e[1mP$e[0mREVIEW $e[1mV$e[0mERSION of New Technology Shell"
  8. title "New Technology Shell"
  9.  
  10. # %HOME% is used by some ntsh functions
  11. if [ $(UserProfile) ] then
  12.     setenv HOME=$(UserProfile)        # Windows NT
  13. else
  14.     setenv HOME=$(WinDir)/Desktop    # Windows 95
  15. endif
  16.  
  17. # set scrollback buffer to 200 lines
  18. # does NOT work in Win95: add a # to disable it
  19. scrollback 200
  20.  
  21. # add some color to prompt
  22. if [ "$(UserName)" =* "Administrator" ] then
  23.     setenv prompt '$e[33m$(ComputerName)$e[0;31m [$e[1m$p$e[0;31m]>$e[32m '
  24. else
  25.     setenv prompt '$e[33m$(ComputerName)$e[0;36m [$e[1m$p$e[0;36m]>$e[32m '
  26. endif
  27.  
  28. #check for new user
  29. if [ ! "$(HKCU@)" ] then
  30.     # now add some links to registry
  31.     set HKCU@=#0x80000001
  32.     set Folders@='HKCU/SOFTWARE/Microsoft/Windows/CurrentVersion/Explorer/Shell Folders'
  33.     # additional code
  34.     echo Welcome, $(UserName).
  35.     # remove the '#' to create a link on the user's desktop:
  36.     # ln -s ntsh $(Folders/Desktop)/ntsh
  37.     # you could copy config files etc. now...
  38. endif
  39.  
  40. # save location of shell folders to environment variables
  41. setenv ProgramFiles=$(HKLM/SOFTWARE/Microsoft/Windows/CurrentVersion/ProgramFilesDir)
  42. setenv Desktop=$(Folders/Desktop)
  43. setenv Favorites=$(Folders/Favorites)
  44. setenv StartMenu=$(Folders/Start Menu)
  45.  
  46. # load aliases
  47. alias -r aliases.cfg
  48. if ( exist ~/.aliases.cfg ) alias -r ~/.aliases.cfg
  49.  
  50. # load user's configuration
  51. if ( exist ~/.ntshrc.cfg ) source ~/.ntshrc.cfg
  52.  
  53. # end
  54.