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