From 0d8ca671b3c86977262456e9b4c15740049d989f Mon Sep 17 00:00:00 2001 From: michener Date: Wed, 21 Mar 2007 07:52:02 +0000 Subject: [PATCH] Fixing bash_profile for use cross-platform git-svn-id: http://photonzero.com/dotfiles/trunk@6 23f722f6-122a-0410-8cef-c75bd312dd78 --- .bash_profile | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.bash_profile b/.bash_profile index abb79e9..0292079 100644 --- a/.bash_profile +++ b/.bash_profile @@ -7,6 +7,17 @@ # remove /usr/games and /usr/X11R6/bin if you want PATH=$HOME/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/usr/X11R6/bin; export PATH +case `uname` in +SunOS) + UCB_PATH=/usr/sww/lang/acl:/usr/sww/lang/jdk-1.5.0/bin:/usr/openwin/bin:/usr/dt/bin:/usr/sww/opt/java/bin:/usr/sww/bin:/share/b/grading/bin:/share/b/grading/sbin:/share/b/runas/sun4u:/share/b/bin:/home/aa/projects/scheme/bin:/usr/ucb:/usr/ccs/bin:/usr/sfw/bin; export UCB_PATH + PATH=$PATH:$UCBPATH; export PATH + ;; +Darwin) + MACPORTS_PATH=/opt/local/bin:/opt/local/sbin:/opt/local/usr/bin:/opt/local/usr/local/bin; export MACPORTS_PATH + PATH=$HOME/bin:$MACPORTS_PATH:$PATH; export PATH + export DISPLAY=:0.0 + ;; +esac # Setting TERM is normally done through /etc/ttys. Do only override # if you're sure that you'll never log in via telnet or xterm or a @@ -20,7 +31,6 @@ PAGER=less; export PAGER # set ENV to a file invoked each time sh is started for interactive use. ENV=$HOME/.bashrc; export ENV -XMMS_PATH="tcp://10.42.0.2:6600" #alias ls='ls -FG' #alias la='ls -FGal'