#this is a slight modification of the original /etc/profile PATH=/bin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:$PATH:. export PATH MANPATH=/usr/local/man:/usr/man:/usr/share/man:/usr/autotool/devel/man:$MANPATH export MANPATH INFOPATH=/usr/local/info:/usr/info:/usr/share/info:/usr/autotool/devel/info:/usr/autotool/stable/info:$INFOPATH export INFOPATH #replace user name with your own user name export USER="carl" export HOME=/home/carl # Run all of the profile.d scripts # Note that these are supplied by separate packages # Ascending alphanumerical order enforced if [ -d "/etc/profile.d" ]; then while read f; do if [ -f "${f}" ]; then . "${f}" fi done <<- EOF `/bin/find /etc/profile.d -iname '*.sh' -type f | sort` EOF fi # Default to unix make mode MAKE_MODE=unix export MAKE_MODE # It is recommended that cvs uses ssh for it's remote shell environment CVS_RSH=/bin/ssh export CVS_RSH # Patches to Cygwin always appreciated ;) # CVSROOT=:pserver:anoncvs@sources.redhat.com:/cvs/src # export CVSROOT # Shell dependent settings case "`echo "$0" | /usr/bin/tr [:upper:] [:lower:]`" in bash | -bash | */bash | \ bash.exe | -bash.exe | */bash.exe ) # Set a HOSTNAME variable HOSTNAME=`hostname` export HOSTNAME # Set a default prompt of: user@host and current_directory PS1='\[\033]0;\w\007 \033[32m\]\u@\h \[\033[33m\w\033[0m\] $ ' # if tty --quiet ; then # stty erase '^?' # fi ;; ksh* | -ksh* | */ksh* | \ ksh*.exe | -ksh*.exe | */ksh*.exe | \ zsh* | -zsh* | */zsh* | \ zsh*.exe | -zsh*.exe | */zsh*.exe ) # Set a HOSTNAME variable typeset -l HOSTNAME # Set a default prompt of: user@host and current_directory PS1='^[]0;${PWD}^G ^[[32m${USER}@${HOSTNAME} ^[[33m${PWD}^[[0m $ ' ;; sh | -sh | */sh | \ sh.exe | -sh.exe | */sh.exe ) # Set a simple prompt PS1='$ ' ;; * ) # Sorry, this shell has no defaults in /etc/profile, # feel free to add your own. # If you have some recommendations for what these defaults # should be, please contact cygwin@cygwin.com with the # shell details and what you would like added. # Thanks PS1='$ ' ;; esac export PS1 # Uncomment to use the terminal colours set in DIR_COLOR # eval `dircolors -b /etc/DIR_COLORS` # Default to removing the write permission for group and other # (files normally created with mode 777 become 755; files created with # mode 666 become 644) umask 022 # Define default printer PRINTER="" case "`uname -s`" in CYGWIN_NT-*) PRINTER="`regtool -q get '\user\Software\Microsoft\Windows NT\CurrentVersion\Windows\Device' | sed 's/,.*$//'`" ;; CYGWIN_9?-*) PRINTER="`regtool -q get '\config\System\CurrentControlSet\Control\Print\Printers\Default'`" ;; esac export PRINTER # Make sure we start in home unless invoked by CHERE if [ ! -z "${CHERE_INVOKING}" ]; then unset CHERE_INVOKING else cd "${HOME}" fi