# .bash_setup # with mods for mac os-x 10.3 # # based on ksh .profile etc for sgi octanes, with history going back # several sgi/unix machine generations, and before that to solaris, and # ultimately to sys5 ca 1985, when started with unix # # [ taken from IRIS root directory # "$Revision: 1.11 $" # extensively modified -- jar ] # set here and exported if variable # SHELL, # JARHOME, JARSTUFF, # ENV, # PATH, MANPATH, # umask, MACHINE, # TZ, # CLICOLOR, LSCOLORS, # VIMRUNTIME, # TERM, DISPLAY, REMOTEHOST, # LATITUDE, LONGITUDE, # . /sw/bin/init.sh # # be sure that the default system stuff is included/retained somewhere SHELL=/bin/bash; export SHELL JARHOME=$HOME; export JARHOME JARSTUFF=$HOME; export JARSTUFF # $ENV is sourced by non-interactive shells = shell scripts # should need nothing from configuration of interactive shells beyond # that which is exported to child processes ENV=""; export ENV # setup paths (PATH, MANPATH) for X11 stuff, including fink addons # 031205: default os-x 10.3 PATH=/bin:/sbin:/usr/bin:/usr/sbin MANPATH=/usr/share/man # mods according to fink . /sw/bin/init.sh # and further customize PATH="$JARSTUFF/bin:$JARSTUFF/bin/Recipes:$PATH" PATH="/usr/local/bin:$PATH" PATH="$PATH:/usr/libexec" # convenient but NOT SECURE to have "." in PATH for root PATH=".:$PATH" PATH=$PATH:/opt/local/bin export PATH MANPATH="/usr/local/man:/usr/local/share/man:$MANPATH" MANPATH="$JARSTUFF/man:$MANPATH" MANPATH="$MANPATH:/opt/local/man" export MANPATH umask 022 # may be used in old scripts MACHINE=`uname -a|awk '{print $2}'`; export MACHINE # might be nice to reset TZ or whatever holds the os-x timezone #. /etc/TIMEZONE # for sgi # set the default terminal for minimal expected == login from vt100 or equiv. #export TERM=vt100 export TERM=xterm-color # set CLICOLOR switch and set LSCOLORS for color scheme for ls # (foreground for dir changed from blue to cyan, from std color scheme) # (wrt color codes - may want to look at display colors in preferences) export CLICOLOR=1 export LSCOLORS="gxfxcxdxbxegedabagacad" export LSCOLORS="GxFxCxDxBxEGEDEBEGEFED" # color code: # a=black b=red c=green d=brown e=blue # f=magenta g=cyan h=light grey x=default # codes are given in pairs for f(oreground)b(ackground) # the eleven pairs define in order the colors for # 1=dir gx cyan blue # 2=symlink fx magenta blue # 3=socket cx green blue # 4=pipe dx brown blue # 5=executable bx red blue # 6=block spec. eg blue cyan # 7=char spec. ed blue brown # 8=exec setuid ab black red # 9=exec setgid ag black cyan # 10=writeall dir + sticky bit set ac black green # 11= writeall dir - sticky bit ad black brown # setup for vi(m) export VIMRUNTIME=/usr/share/vim/vim62 # Set the default X server. DISPLAY="$HOSTNAME":0.0 REMOTEHOST=`/bin/ps -a| grep $PPID | grep login | sed -e "s/^.*-h \([^ ]*\) .*$/\1/"` if [ "x"$REMOTEHOST != "x" ] then DISPLAY="$REMOTEHOST":0.0 fi export DISPLAY export REMOTEHOST # uofa satellite dish #export LONGITUDE=110.9508 #(((110.)*60. + 57.)*60. + 3.) /* Arc-sec West */ #export LATITUDE=32.2356 #((( 32.)*60. + 14.)*60. + 8.) /* Arc-sec North */ # jar home: 30 calle belleza; from maptech mapserver coordinate interpolation #((14.*60. + 20.)- (12.*60. + 16.))/3600 * 66/125 + (12.*60. + 16.)/3600 #((56.*60. + 46.)- (54.*60. + 20.))/3600 * 53/123.5 + (54.*60. + 20.)/3600 # note: uofa sat dish would be about 6 blocks W (.5 mi) of speedway and campbell # i.e., about speedway and mountain export LONGITUDE=110.9230 # /* Arc-deg West */ export LATITUDE=32.2226 # /* Arc-deg North */ # perhaps not needed here, or at least not until have non-standard X stuff #export XUSERFILESEARCHPATH="$JARSTUFF/app-defaults/sgi-color1280/%N:$JARSTUFF/app-defaults/%N:$ADDON/lib/X11/app-defaults/sgi-color1280/%N:$ADDON/lib/X11/app-defaults/%N:/usr/lib/X11/app-defaults/sgi-color1280/%N:/usr/lib/X11/app-defaults/%N" # compiler and related stuff, to recognize 3 or more sources of libfiles, etc # # for darwinports, likely for all ./configure users #export PKG_CONFIG_PATH="/opt/local/lib/pkgconfig:/sw/lib/pkgconfig" # # for compiler #export LIBRARY_PATH="/sw/lib:/usr/lib:/usr/local/lib:/usr/X11R6/lib:/opt/local/lib" #export CPATH="/sw/include:/usr/include:/usr/local/include:/usr/X11R6/include:/opt/local/include"