View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Feb 20, 2009 5:58 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I found the cool shortcut keys for fluxbox in /etc/X11/fluxbox/keys

I'd like to replace the command that alt-x uses to start an xterm with the ability to source my dot files (.bashrc) to enable color.

It currently reads:
Code:
Mod1 x :ExecCommand xterm -fn *18*


Thanks!

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2009 6:02 pm 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
/etc/X11/fluxbox/keys


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2009 6:09 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
@brfransen - I found that and edited my post probably just as you replied... do you know about sourcing my ~/.bashrc

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2009 6:17 pm 
Offline
Joined: Wed Mar 19, 2008 5:26 pm
Posts: 14
Location: Brisbane, QLD, Australia
Sounds like you just need to change the default shell for the appropriate user (mythtv). This is done using the "chsh" command while logged in as the correct user:
Code:
truck@XXXX:~$ chsh
Password:
Changing the login shell for truck
Enter the new value, or press ENTER for the default
        Login Shell [/bin/bash]:


You could also edit the /etc/passwd file directly as root and just change the default shell for the required users.

Cheers


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2009 6:31 pm 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
Thanks for the suggestion... I made the switch in my /etc/passwd file for my users, but I don't see the colors getting sourced when I alt+x within fluxbox. Only when I type 'bash' do they get loaded.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 20, 2009 9:19 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
Sourcing $HOME/.bashrc isn't done automatically. That name is only a convention, bash actually uses whatever file the BASH_ENV variable is set to, and if it's not set it won't source anything.

BASH_ENV
must be set and export in your profile (read the bash man page for the fallbacks for that, it's too complicated to repeat here) if you want it to load a settings file for each new shell invocation. Oh and if it's already been loaded once by .bash_profile/.bash_login/... you may actually be better off _not_ reloading it every time since that can cause other issues.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 21, 2009 3:39 am 
Offline
Joined: Wed Dec 10, 2003 8:31 pm
Posts: 1996
Location: /dev/null
I'll look into it, thanks tjc.

_________________
Retired KM user (R4 - R6.04); friend to LH users.


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu