home *** CD-ROM | disk | FTP | other *** search
/ vis-ftp.cs.umass.edu / vis-ftp.cs.umass.edu.tar / vis-ftp.cs.umass.edu / pub / .profile < prev    next >
Text File  |  1996-04-17  |  722b  |  35 lines

  1. #
  2. # This is the default standard .profile provided to sh users.
  3. # They are expected to edit it to meet their own needs.
  4. #
  5. # The commands in this file are executed when an sh user first
  6. # logs in.
  7. #
  8. # $Revision: 1.10 $
  9. #
  10.  
  11. # Set the interrupt character to Ctrl-c and do clean backspacing.
  12. if [ -t 0 ]
  13. then
  14.     stty intr '^C' echoe 
  15. fi
  16.  
  17. # Set the TERM environment variable
  18. eval `tset -s -Q`
  19.  
  20. # Set the default X server.
  21. if [ ${DISPLAY:-setdisplay} = setdisplay ]
  22. then
  23.     if [ ${REMOTEHOST:-islocal} != islocal ]
  24.     then
  25.         DISPLAY=${REMOTEHOST}:0
  26.     else
  27.         DISPLAY=:0
  28.     fi
  29.     export DISPLAY
  30. fi
  31.  
  32.  
  33. # List files in columns if standard out is a terminal.
  34. ls()    { if [ -t ]; then /bin/ls -C $*; else /bin/ls $*; fi }
  35.