2 ################################################################################
4 # File: $RCSfile: profile,v $
5 # Revision: $Revision: 1.3 $
6 # Description: ksh profile
7 # Author: Andrew@DeFaria.com
8 # Created: Thu Jun 6 08:31:57 PDT 1996
9 # Modified: $Date: 2006/07/24 05:37:57 $
12 # (c) Copyright 2000-2004, Andrew@DeFaria.com, all rights reserved.
14 ################################################################################
15 # Set ARCH, architecture of the machine
18 if [[ $KERNEL = CYGWIN* ]]; then
20 elif [ $KERNEL = "Linux" ]; then
22 elif [ $KERNEL = "SunOS" ]; then
24 elif [ $KERNEL = "FreeBSD" ]; then
27 echo "Warning: Unknown architecture ($KERNEL)"
31 if [ -f ~/.rc/set_colors ]; then
34 echo "Warning: ~/.rc/set_colors does not exist!"
37 # Evil black magic for the ENV variable. This was given to me by Ken Sumrall.
38 # Currently it's mystery is not explained but it prevents problems. It
39 # basically determines if we are interactive or background and set up ENV
41 export ENV='${START[(_$- = 1) + (_ = 0) - (_$- != _${-%%*i*}) ]}'
42 export START=~/.rc/kshrc
44 # Check to see if we're interactive
45 if [[ $- = *i* ]]; then
46 export interactive=true
48 export interactive=false
51 if [ ! -f ~/.rc/kshrc ]; then
52 echo "Warning: ~/.rc/kshrc does not exist!"
55 export HISTFILE=~/.bash_history
60 export SPEAKER=headphones
62 # Miscellaneous variables:
63 export ERRFILE=.vue/errorlog
66 if [ "$TERM" = "" -o \
67 "$TERM" = "unknown" -o \
68 "$TERM" = "dialup" -o \
69 "$TERM" = "network" ]; then
70 if [ "$interactive" = "true" ]; then
71 eval $(ttytype -s -a -t ansi -t hp)
75 # System dependent variables.
76 if [ -f ~/.rc/system ]; then
79 echo "Warning ~/.rc/system does not exist!"
80 export SYSNAME="*Unknown Systemname*:"
83 # Set my default printer