Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

Personalizeing my Shell....problem with ~./bash_profile

If none of the specific sub-forums seem right for your thread, ask here.
Post Reply
Message
Author
dman777

Personalizeing my Shell....problem with ~./bash_profile

#1 Post by dman777 »

I am trying to perosnalize my Shell. What I am trying to do first is source my .bashrc from .bash_profile and that way I can just modify the .bashrc. The problem is....I load up ~/.bash_profile in nano, and the file loads but it is completely empty. In the book I am useing, Debian Bible, it saids there should be 3 lines:

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

but, again, my ~/.bash_profile file doesn't have those and it is empty.
any suggestions?

thanks,
-dman777

Grifter
Posts: 1554
Joined: 2006-05-04 07:53
Location: Svea Rike

#2 Post by Grifter »

this is how mine looks, remember to leave the last line empty

Code: Select all

# ~/.bash_profile: executed by bash(1) for login shells.
# see /usr/share/doc/bash/examples/startup-files for examples.
# the files are located in the bash-doc package.

# the default umask is set in /etc/login.defs
#umask 022

# include .bashrc if it exists
if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi

# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
    PATH=~/bin:"${PATH}"
fi
Eagles may soar, but weasels don't get sucked into jet engines...

dman777

#3 Post by dman777 »

thanks...that's wierd that mine is empty. at first i thought it was because my profile didn't have permession, but even when i am logged in at root it shows empty.

Grifter
Posts: 1554
Joined: 2006-05-04 07:53
Location: Svea Rike

#4 Post by Grifter »

root doesn't have a .bash_profile by default
Eagles may soar, but weasels don't get sucked into jet engines...

Post Reply