bashrc question
Joe
josephj at main.nc.us
Fri Mar 25 11:17:22 EST 2005
Don't know your answer, but ...
Have you tried man ash?
I don' t do much with bashrc, but I have a handful of small scripts I
put there to use like shortcuts. Here's an example:
# .bashrc
# User specific aliases and functions
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
.
.
.
bin() {
cd $HOME/bin
echo -en "\t\t"
pwd
}
which is a little function which switches me to my bin directory and
tells me what it did.
[bigbird at localhost bigbird]$ bin
/home/bigbird/bin
[bigbird at localhost bin]$
Joe
S. Lawton wrote:
>Is .bashrc shell specific or is it a "generic" file ?
>i apparently don't have one currently.
>When I open rvxt, this is on the top of the screen:
>
>BusyBox v0.60.5 (2004.09.18-02:04+0000) Built-in shell (ash)
>
>Many of the common commands in bin and sbin are actually links to
>BusyBox.
>Is ash different from bash ? As this is a live cd, could this just be a
>typographical error ?
>What I really want to know is, if I make a bashrc would it be used, or
>if ash is different, what file do I need to put in ~ to change the
>command prompt ?
>
>I have never tried to edit bashrc before, because in other distros the
>command prompt has always been of the form: login name current
>directory, or something similar. Puppy has nothing but a prompt
>character in a terminal, so I figured this would be a good time to try,
>but the file's not there.
>
>
>
--
"Determine that a thing can and shall be done, and then we shall find the way." - Abraham Lincoln
More information about the nflug
mailing list