home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / ms_sh23s.zip / sh.rc < prev    next >
Text File  |  1992-07-14  |  669b  |  46 lines

  1. #!sh
  2. #
  3. # Set up functions etc.
  4. #
  5.  
  6. if    [ "$windir" = "" ]
  7. then    swap on
  8. else    swap disk expand
  9. fi
  10.  
  11. msdos LIB TMP PATH COMSPEC
  12.  
  13. alias 'l=ls -C'
  14. alias 'cls=tput clear'
  15. alias 'who=userlist'
  16. alias 'autoload=typeset -fu'
  17. alias 'integer=typeset -i'
  18. alias 'r=fc -e -'
  19.  
  20. login () {
  21.  
  22.     if   [ -f login.exe ]
  23.     then ./login $*
  24.     elif [ -f f:login.exe ] 
  25.     then f:login $*
  26.     else z:/public/login $*
  27.     fi
  28.  
  29.     if [ $? = 0 ]
  30.     then TMP=z:/tmp
  31.     fi
  32.  
  33.     DATE=`date '+%.2y%.2m%.2d'`
  34.     EXINIT="set aw ai sm dm sw=4 wm=5 dir=$TMP"
  35. }
  36.  
  37. logout () {
  38.     DATE=`date '+%.2y%.2m%.2d'`
  39.  
  40.     cd
  41.     z:/public/logout
  42.  
  43.     TMP=c:/tmp
  44.     EXINIT="set aw ai sm dm sw=4 wm=5 dir=$TMP"
  45. }
  46.