[Linux-disciples] trouble with .bashrc
Chung-chieh Shan
ccshan at post.harvard.edu
Sun Nov 7 00:30:26 EST 2004
On 2004-11-07T00:23:22-0500, Jamie Forrest wrote:
> alias cp='cp -i'
> alias mv='mv -i'
You probably want to say
alias cp='\cp -i'
alias mv='\mv -i'
to avoid an infinite loop.
> I put this in a .bashrc file in my ~/ directory, with -rwxr-xr-x
> permissions. But when i use cp and mv, I don't get the prompt, even
> when I restart the shell (Terminal program).
>
> Any hints for me?
Perhaps counterintuitively, bash reads .bashrc only if it is run as
-not- the login shell (and it is run interactively). So you want to put
. ~/.bashrc
(as Steve mentioned) in your ~/.bash_profile or ~/.profile file.
(~/.bash_profile overrides ~/.profile)
By the way, you don't need to set executable permission on ~/.bashrc,
~/.profile, or ~/.bash_profile
Ken
--
Edit this signature at http://www.digitas.harvard.edu/cgi-bin/ken/sig
Institutions are only as good as the people who are committed to them.
You cannot spell 'signature' without 'gnat'.
US blogger Markos Moulitsas: A Bush re-election would galvanise the opposition
http://guardian.co.uk/print/0,3858,5054048-114515,00.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.bostoncoop.net/pipermail/linux-disciples/attachments/20041107/9cb069a3/attachment.pgp
More information about the Linux-disciples
mailing list