Local profiles and bash aliases [SOLVED]

Forum rules
Before you post please read how to get help

Local profiles and bash aliases [SOLVED]

Postby mintybovril on Sun Dec 04, 2011 6:19 am

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!
Last edited by mintybovril on Sun Dec 04, 2011 1:00 pm, edited 1 time in total.
mintybovril
Level 1
Level 1
 
Posts: 3
Joined: Sun Dec 04, 2011 6:02 am

Linux Mint is funded by ads and donations.
 

Re: Local profiles and bash aliases

Postby mintybovril on Sun Dec 04, 2011 1:00 pm

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!
mintybovril
Level 1
Level 1
 
Posts: 3
Joined: Sun Dec 04, 2011 6:02 am


Return to Scripts & Bash

Who is online

Users browsing this forum: No registered users and 5 guests