.profile and the ENV file

Here are the steps involved in changing the startup files for the user:
  1. you may need to change the contents of the .dtprofile in your home directory and make sure that the following line is uncommented (no leading #)
       DTSOURCEFILE=true
    
  2. add these lines at the VERY END of the .profile
       ENV=$HOME/.shrc
       export ENV
    
  3. create the ENV file in your home directory
       $ cd
       $ touch .shrc
    
  4. here are the contents of the $HOME/.shrc file
       EDITOR=vi
       # PRINTER=HP5L
       # TERM=vt100
       HISTFILE=$HOME/.sh_history
       HISTSIZE=128
    
       set -o vi
       set -o noclobber
    
       export PS1="$LOGNAME@$(hostname)>$(echo '$PWD')$"
       export PS2='cont>'
    
       alias ll='ls -l '
       alias dir='ls -l'