Mail Archives: djgpp/1997/03/30/05:36:25
Carlos A Alcalde <calcalde AT earthlink DOT net> wrote in article
<01bc3ca9$bda55580$3343face AT themall DOT themall DOT com>...
>I am new to djgpp and I would like to know how does bash behave
>compared to Linux bash. In particular how does one customize bash in
djgpp.
>For example, how does one get bash to give the working directory in the
>prompt. Thanks in advance to anyone who answers my question.
You configure it just like you would the Linux version. Some additional
variables are available only for the DJGPP version (described in
readme.dos). Here's my bash configuration:
In AUTOEXEC.BAT:
SET SYSROOT=D: --- I want my "D:\" to be "/"
SET HOME=D:\HOME\WEIQI --- My home directory.
In D:\HOME\WEIQI\.bashrc (dot bashrc, same syntax as in Linux):
alias ls="ls --color=auto -F"
alias d="dir --color=auto -F"
alias v="vdir --color=auto -F"
alias rm="rm -i"
alias mv="mv -i"
alias cp="cp -i"
alias r="fc -s"
alias vim="vim -T win32"
alias find="/usr/bin/find.exe"
alias sort="/usr/bin/sort.exe"
PS1="\u: \w \#\$ "
TERM=win32-win
export PS1 TERM
--
Weiqi Gao
weiqigao AT crl DOT com
- Raw text -