Woo-hoo! It works. Thanks Bill.
I guess that .bashrc isn't getting run? Is this a freeVSD problem?
Thanks,
Ben K
PS: My "question that can be answered in a couple of seconds" was a bit
harder than expected then!
Bill Brigden wrote:
>
> Hey all,
> If you do as follows, it will work
>
> In .bash_profile
> -----------------------------------
> # Get the aliases and functions
> if [ -f ~/.bashrc ]; then
> . ~/.bashrc
> fi
>
> In .bashrc
> -----------------------------------
> alias rm='echo "duh"'
> (or whatever you want.....)
>
> And that will work
>
> Bill
>
> ----- Original Message -----
> From: "Ben Kennish" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Tuesday, June 12, 2001 4:38 PM
> Subject: Re: .bashrc - Simple question
>
> > I have a /root/.profile but no /root/.login. However, .profile only has
> > some PATH stuff, no aliases.
> >
> > Thanks,
> >
> >
> > Ben.
> >
> >
> > Gary Reid wrote:
> > >
> > > do you have a .login or .profile? as these are run after .bashrc
> > >
> > > Gary
> > >
> > > ----- Original Message -----
> > > From: "Ben Kennish" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Tuesday, June 12, 2001 4:26 PM
> > > Subject: Re: .bashrc - Simple question
> > >
> > > > I've just tried this and it doesn't seem to work :-(
> > > >
> > > > I typed
> > > > #!/bin/sh
> > > > alias rm='rm -i'
> > > >
> > > > in a new file (/root/.bash.loacle) and exited. I telnetted in and
> > > > still, no confirmation on delete. I tried .bash_locale too.
> > > >
> > > > Thanks anyway,
> > > >
> > > > Ben
> > > > PS: love the sig. btw
> > > >
> > > > [EMAIL PROTECTED] wrote:
> > > > >
> > > > > Ben,
> > > > >
> > > > > just use
> > > > >
> > > > > /root/.bash.locale
> > > > >
> > > > > for the user shell commands
> > > > > (first line: #!/bin/sh)
> > > > >
> > > > > regards
> > > > >
> > > > > jimmy
> > > > >
> > > > > am [Tue, 12 Jun 2001 15:00:27 +0100] schrieb Ben Kennish
> <[EMAIL PROTECTED]>
> > > :
> > > > >
> > > > > > I guess this question isn't that simple after all! :-)
> > > > > >
> > > > > > Doesn't anyone know the answer?
> > > > > >
> > > > > >
> > > > > > Ben
> > > > > >
> > > > > >
> > > > > > Ben Kennish wrote:
> > > > > > >
> > > > > > > A refreshing change... a question that can be answered in a
> couple
> > > of
> > > > > > > seconds (I hope!)
> > > > > > >
> > > > > > > Why isn't "/root/.bashrc" run when I telnet to a VS as admin?
> > > > > > >
> > > > > > > I've inserted
> > > > > > >
> > > > > > > alias rm='rm -i'
> > > > > > >
> > > > > > > in it but I dont get any prompt to delete files. Typing the
> above
> > > line
> > > > > > > in manually after having logged on does give me a prompt so the
> > > script
> > > > > > > doesnt seem to be getting run?
> > > > > > >
> > > > > > > Thanks,
> > > > > > >
> > > > > > > --
> > > > > > > Ben Kennish
> > > > > > >
> > > > > > > e: [EMAIL PROTECTED]
> > > > > > > w: www.fubra.com
> > > > >
> > > > > James T. Koerting
> > > > >
> > > > > KSD Germany
> > > > > [EMAIL PROTECTED]
> > > > >
> > > > > Murphy's Law: "Anything that can go wrong, will go wrong"
> > > > > Parkinson's Law: "Work expands to exceed available time"
> > > > > Koerting's Law: "Don't fight against these laws"
> > > >