LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 05-24-2006, 11:04 AM   #1
true_atlantis
Member
 
Registered: Oct 2003
Distribution: fedora cor 5 x86_64
Posts: 639

Rep: Reputation: 30
make fedora use the ~/.bash_profile


for some reason my fedora core 4 doesnt use the ~/.bash_profile file... i tried adding directories to the PATH but when opening a new shell, it will not work. what do i need to add to make this file work? or where should i add to PATH?
 
Old 05-24-2006, 11:24 AM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
I suspect that when you say 'opening a new shell' you mean a terminal window. The terminal window normally runs under the login shell, when you login to your session.

If you want the terminal windows to pick up profile changes when opened, you can 'Edit the current profile', click on the 'Title and command' tab, then select 'Run as a login shell'.

Alternatively, you can logoff and log back in.
 
Old 05-24-2006, 08:39 PM   #3
IBall
Senior Member
 
Registered: Nov 2003
Location: Perth, Western Australia
Distribution: Ubuntu, Debian, Various using VMWare
Posts: 2,088

Rep: Reputation: 62
If you want changes to take effect when you open a new terminal, use .bashrc. .bash_profile is only run when starting a login shell, .bashrc is read whenever you open a new shell.

You can add the following line .bashrc if it is not already there:
Code:
if [-f ~/.bash_profile]; then
    source ~/.bash_profile
fi
I hope this helps
--Ian
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
make changes in .bash_profile sanou Linux - General 3 02-22-2006 04:48 AM
Possible to make sub-forums in Fedora Distro johnnydangerous LQ Suggestions & Feedback 2 02-08-2005 03:37 PM
How do you make a Fedora 2 boot disk RThomson Fedora - Installation 2 10-22-2004 07:58 AM
how to make autologin in fedora 2 hkl8324 Linux - Newbie 12 07-26-2004 04:00 AM
How do I make my own Fedora distro? demitri_88 Fedora 3 05-11-2004 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration