|
|
#1 |
|
MVP
Join Date: Jan 2002
Location: Boston, MA
Posts: 1,487
|
.bash_profile in X11 xterm
Install of X11 (pb 0.2) and Fink and am wondering why it seems that xterm does not "see" my existing .bash_profile as it launches. It has no problem with .bashrc as my funky prompt shows up as expected.
__________________
:: 3.4GHz Core i7 iMac 4GB RAM :: Black MacBook SR :: 10.7.2 :: iPhone 4 / iOS 5 :: |
|
|
|
|
|
#2 |
|
League Commissioner
Join Date: Jan 2002
Posts: 5,536
|
xterm is not run as a 'login' shell and the .bash_profile is not sourced. you could put a check for terminal type xterm and source the profile from .bashrc, but you have to be careful that your profile doesn't then source .bashrc and get into a loop
|
|
|
|
|
|
#3 |
|
Moderator
Join Date: Jan 2002
Location: Singapore
Posts: 4,237
|
rusto,
Check the following thread at x11-users list: http://lists.apple.com/mhonarc/x11-users/msg01232.html |
|
|
|
|
|
#4 | |||||||||||||||||||
|
MVP
Join Date: Jan 2002
Location: Boston, MA
Posts: 1,487
|
This is the tip that worked for me:
Note: for those flummoxed by trying to login to the link in Sao's post, see the info here: http://search.lists.apple.com/x11-users
__________________
:: 3.4GHz Core i7 iMac 4GB RAM :: Black MacBook SR :: 10.7.2 :: iPhone 4 / iOS 5 :: |
|||||||||||||||||||
|
|
|
|
|
#5 | |||||||||||||||||||
|
Major Leaguer
Join Date: Oct 2002
Posts: 268
|
If this is correct, then is there something wrong with my xinitrc: Code:
$ tail -2 /etc/X11/xinit/xinitrc /sw/bin/blackbox & exec xterm -geometry 80x24+0+20 -fg white -bg black -name login $ Thanks Eric PS Everything above the last two lines is left unchanged from the original XDarwin install... yes, I still have both lying around. |
|||||||||||||||||||
|
|
|
|
|
#6 |
|
Guest
Posts: n/a
|
Thanks!
Rusto, that's what worked for me too. Thanks! Note: I had to actually create that file; it wasn't there beforehand.
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|