Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/skel could be beter, default shell "sh"? why
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
amittp
Tux's lil' helper
Tux's lil' helper


Joined: 02 Jul 2002
Posts: 123
Location: USA

PostPosted: Sun Jul 28, 2002 7:00 am    Post subject: /etc/skel could be beter, default shell "sh"? why Reply with quote

Most of the users like to have bash as their default shell. While adding a user, newbies forget to give -s option. This makes sh as the default shell. Well sh is linked to bash. But it behaves differntly. It doesnot read .bashrc. Most of the users then lauch their xterms using -ls option, which is not quite right.

My suggestion is to make default shell to be bash and change /etc/skel/.bash_profile and /etc/skel/.bashrc which are bit weird.

since bashrc is being sourced by bash_profile, it would be better that bashrc contents whatever right now lies in bash_profile.

It seems that, PATHS are being updated to /etc/profile. So it would be good idea if we have /etc/skel/.bashrc as given below:

Code:

if [ -f /etc/profile ]; then                                                   
        source /etc/profile                                                     
fi                                                                             
                                                                               
eval `dircolors -b /etc/DIR_COLORS`                                                 
                                                                               
alias ls='ls --color=always -phsFv'                                             
alias rm='rm -iv'                                                               
alias cp='cp -iv'                                                               
alias mv='mv -iv'               

Aliases can be different

And /etc/skel/.bash_profile can be this way:
Code:


if [ -f ~/.bashrc ]; then                                                       
        source ~/.bashrc                                                       
fi         
         


This way PS1 will get value too from /etc/profile and we wont have to face default bash promt

I hope these changes will make things much easier and clean.
_________________
Believe in yourself
Back to top
View user's profile Send private message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Sun Jul 28, 2002 6:19 pm    Post subject: Reply with quote

you cannot have .bashrc source /etc/bash_profice because /etc/bash_profile is allowed to output text and .bashrc is not. otherwise i agree and have already submitted a "bug report" to get them to move the aliases to .bashrc
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat 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