1 # Copyright (C) 2001, 2002 Earnie Boyd <earnie@users.sf.net>
2 # This file is part of the Minimal SYStem.
3 # http://www.mingw.org/msys.shtml
6 # Description: Shell environment initialization script
7 # Last Revised: 2002.05.04
9 if [ -z "$MSYSTEM" ]; then
13 # My decision to add a . to the PATH and as the first item in the path list
14 # is to mimick the Win32 method of finding executables.
16 # I filter the PATH value setting in order to get ready for self hosting the
17 # MSYS runtime and wanting different paths searched first for files.
18 if [ $MSYSTEM == MINGW32 ]; then
19 export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
21 export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH"
24 if [ -z "$USERNAME" ]; then
30 # Set up USER's home directory
31 if [ -z "$HOME" ]; then
35 if [ ! -d "$HOME" ]; then
37 cp /etc/inputrc.default "$HOME"/.inputrc
40 if [ "x$HISTFILE" == "x/.bash_history" ]; then
41 HISTFILE=$HOME/.bash_history
44 export HOME LOGNAME MSYSTEM HISTFILE
46 for i in /etc/profile.d/*.sh ; do
53 export PS1='\[\033]0;$MSYSTEM:\w\007
54 \033[32m\]\u@\h \[\033[33m\w\033[0m\]