source: Daodan/MinGW/msys/1.0/etc/profile@ 1134

Last change on this file since 1134 was 1046, checked in by alloc, 8 years ago

Daodan: Added Windows MinGW and build batch file

File size: 1.3 KB
RevLine 
[1046]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
4#
5# File: profile
6# Description: Shell environment initialization script
7# Last Revised: 2002.05.04
8
9if [ -z "$MSYSTEM" ]; then
10 MSYSTEM=MINGW32
11fi
12
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.
15#
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.
18if [ $MSYSTEM == MINGW32 ]; then
19 export PATH=".:/usr/local/bin:/mingw/bin:/bin:$PATH"
20else
21 export PATH=".:/usr/local/bin:/bin:/mingw/bin:$PATH"
22fi
23
24if [ -z "$USERNAME" ]; then
25 LOGNAME="`id -un`"
26else
27 LOGNAME="$USERNAME"
28fi
29
30# Set up USER's home directory
31if [ -z "$HOME" ]; then
32 HOME="/home/$LOGNAME"
33fi
34
35if [ ! -d "$HOME" ]; then
36 mkdir -p "$HOME"
37 cp /etc/inputrc.default "$HOME"/.inputrc
38fi
39
40if [ "x$HISTFILE" == "x/.bash_history" ]; then
41 HISTFILE=$HOME/.bash_history
42fi
43
44export HOME LOGNAME MSYSTEM HISTFILE
45
46for i in /etc/profile.d/*.sh ; do
47 if [ -f $i ]; then
48 . $i
49 fi
50done
51
52export MAKE_MODE=unix
53export PS1='\[\033]0;$MSYSTEM:\w\007
54\033[32m\]\u@\h \[\033[33m\w\033[0m\]
55$ '
56
57alias clear=clsb
58
59cd "$HOME"
60
Note: See TracBrowser for help on using the repository browser.