From xeirrr, 8 Years ago, written in Plain Text.
Embed
  1. lee@lunar ~ $ cat .bashrc
  2. # .bash_profile - the per-user bash interactive shell customization file
  3. # you can use this file to customize your bash's behaviour
  4.  
  5. # note we DO NOT source /etc/profile here, since it has already been
  6. # executed when this file is processed.
  7.  
  8. # The user is encouraged to enter these values, so we
  9. # put em on top of this file so they are easy to spot:
  10.  
  11. # export DEFAULTKDE=
  12. # EDITOR=
  13. # LANG=
  14.  
  15. # if the user didn't set them we might as well give defined system defaults:
  16. LANG=${LANG:-en_US}
  17. [ -z "$EDITOR" ] && {
  18.     # an editor has not been set, go find a decent one, the last one
  19.     # found in the row is picked and set.
  20.     [ -x /usr/bin/pico  ] && EDITOR="pico"
  21.     [ -x /usr/bin/nano  ] && EDITOR="nano"  
  22.     [ -x /usr/bin/elvis ] && EDITOR="elvis"  
  23.     [ -x /usr/bin/vi    ] && EDITOR="vi"    
  24.     [ -x /usr/bin/vim   ] && EDITOR="vim"    
  25.     [ -x /usr/bin/emacs ] && EDITOR="emacs"
  26.     }
  27.  
  28. # miscellaenous initialization:
  29. umask   022
  30.  
  31. # Now we can set package specific paths and variables:
  32. for RC in /etc/profile.d/*.rc ; do
  33.     # note we can set the permissions for root-specific scripts:
  34.     [ -r $RC ] && . $RC
  35. done
  36.  
  37. # '.' comes last and only for non-root users
  38. [ "$UID" -ge 1000 ] && PATH="$PATH:."
  39.  
  40. # finished
  41. export EDITOR PATH LANG
  42.  
  43.