Page 1 of 1

Local profiles and bash aliases [SOLVED]

Posted: Sun Dec 04, 2011 6:19 am
by mintybovril
Hi All,

I'm still fairly new to Mint/Ubuntu so please forgive me if this is a stupid question. I want each user
to have a custom .profile .bashrc and .bash_aliases, i'm running Mint 12 which seems pretty awsome.

Everything seems to be invoked from /etc/profile /etc/bash.bashrc. I see the local user directory doesn't
have any of the .profile .bashrc files I was expecting.

The obvious answer (in my twisted mind) seems to be to edit the /etc/profile to include the following lines...

At the bottom of the /etc/profile

Code: Select all

    if [ -f ~/.profile ]; then
      . ~/.profile
    fi
~/.profile

Code: Select all

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

Code: Select all

    if [ -f ~/.bash_aliases ]; then
      . ~/.bash_aliases
    fi
Then I can just stick the templates in /etc/skel

Am I way off the mark here ?

Cheers!

Re: Local profiles and bash aliases

Posted: Sun Dec 04, 2011 1:00 pm
by mintybovril
WARNING: Looks like i'm having some authentication problems with pam and lightdm.
I'm pulling the solution until I have tested to make sure its not related to the solution.
Currently not able to login as my user.


Cheers

MintyBovril!