Local profiles and bash aliases [SOLVED]

About writing shell scripts and making the most of your shell
Forum rules
Topics in this forum are automatically closed 6 months after creation.
Locked
mintybovril

Local profiles and bash aliases [SOLVED]

Post 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!
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 2 times in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
mintybovril

Re: Local profiles and bash aliases

Post 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!
Locked

Return to “Scripts & Bash”