On Wed, February 2, 2005 9:30 pm, dave said:
> On Wed, 02 Feb 2005 20:59, Nick Rout wrote:
>> /etc/skel contains the files that are loaded to a new users home dir,
>> they
>> are therefore the defaults
> Okay found them and copied the .bash_profile to my user dir all via the
> konsole using bash shell ver bash-2.05b$ ( this is actually my prompt
> too).
>
> looking at the file i copied from a newly created user and the version
> in /etc/skel they are look the same (as i would expect since i created a
> new
> user then logged in as that user then copied it across to my home dir as
> root).
>
> BUT still i don�t get what the new user gets (namely the below pasted
> prompt)
> bash-2.05b$ su temps <--- my current terminal prompt
> Password:
> [EMAIL PROTECTED] dave]$ <--- temps terminal prompt and what i wish to have
> restored.
>
> below is temps .bash_profile
>
> [EMAIL PROTECTED] dave]$ cat .bash_profile
> # .bash_profile
>
> # Get the aliases and functions
> if [ -f ~/.bashrc ]; then
>         . ~/.bashrc

this bit says "if the file ~/.bashrc exists then source it", ie read its
contents in.

the dot on the line . ~/.bashrc is equivalent to the source command, and
bloody hard to spot.

so copy .bashrc from /etc/skel too.




> fi
>
> # User specific environment and startup programs
>
> PATH=$PATH:$HOME/bin
>
> export PATH
> unset USERNAME
>
>
>
>
>
>>
>> ibm 2.6.9-gentoo-r1 # ls -a /etc/skel
>> .  ..  .bash_logout  .bash_profile  .bashrc
>>
>> On Wed, February 2, 2005 8:54 pm, dave said:
>> > somehow i have no .bas_profile for me as a user.
>> >
> *** snipped ***
> --
> Dave Lilley
>


Reply via email to