|
From: | Matthew Woehlke |
Subject: | Re: Install Bashdb and Bash not as root |
Date: | Fri, 13 Mar 2009 17:38:15 -0500 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.8.1.19) Gecko/20090105 Fedora/2.0.0.19-1.fc10 Thunderbird/2.0.0.19 Mnenhy/0.7.5.0 |
lehe wrote:
1. The change to PATH is effective only in the current shell session. I was wondering if it is possible to run the new bash instead of the old one everytime it is lauched in terminal, putty and in emacs. Is there a place where the change to PATH could be added and executed before bash starts, like ".bashrc" for when bash is lauched?
Unless you can change your login shell, no.I maintain a GNU toolchain, including bash, on a range of platforms with wildly varying functionality (the point of the toolchain is to smooth things out so that e.g. everywhere has a decent bash, vim, etc.). What I do is set up a .profile that sets the environment for this toolchain (e.g. PATH) and ends with the equivalent of 'exec bash -l'.
So, in short, you're possibly stuck running the "old" shell, but there are ways to arrange for that to exec the new one on login.
-- Matthew Please do not quote my e-mail address unobfuscated in message bodies. -- "943. I am not Bjorn of Borg." -- from 975 things Mr. Welch can no longer do in an RPG http://theglen.livejournal.com/16735.html
[Prev in Thread] | Current Thread | [Next in Thread] |