Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Couldn't get .bashrc working
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
stieizc
n00b
n00b


Joined: 03 Oct 2012
Posts: 29
Location: China, Earth

PostPosted: Thu Oct 04, 2012 12:53 pm    Post subject: Couldn't get .bashrc working Reply with quote

I tried to alias rm as rm -iv under /root, but my box just wouldn't listen.
Here's my .bashrc:
http://bpaste.net/show/49283
How can I fix it? Many thanks !
Back to top
View user's profile Send private message
John R. Graham
Administrator
Administrator


Joined: 08 Mar 2005
Posts: 10587
Location: Somewhere over Atlanta, Georgia

PostPosted: Thu Oct 04, 2012 2:19 pm    Post subject: Reply with quote

For some reason relating to minimalism, the root user's home directory doesn't have the standard files copied from /etc/skel. In order for .bashrc to be picked up in all cases, you need a .bash_profile file. As root, just do
Code:
cp /etc/skel/.bash* /root
and then add your mods to the prototype .bashrc and you'll be all set.

- John
_________________
I can confirm that I have received between 0 and 499 National Security Letters.
Back to top
View user's profile Send private message
stieizc
n00b
n00b


Joined: 03 Oct 2012
Posts: 29
Location: China, Earth

PostPosted: Sat Oct 06, 2012 6:55 am    Post subject: Reply with quote

John R. Graham wrote:
For some reason relating to minimalism, the root user's home directory doesn't have the standard files copied from /etc/skel. In order for .bashrc to be picked up in all cases, you need a .bash_profile file. As root, just do
Code:
cp /etc/skel/.bash* /root
and then add your mods to the prototype .bashrc and you'll be all set.

- John


Thank you very much! I'll give it a try soon.
Back to top
View user's profile Send private message
stieizc
n00b
n00b


Joined: 03 Oct 2012
Posts: 29
Location: China, Earth

PostPosted: Sat Oct 06, 2012 3:01 pm    Post subject: Reply with quote

It works! Thanks a lot!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum