Pages

Monday, May 2, 2011

rxvt and bash

I am using rxvt as my default terminal emulator when I am working on a WM. And I like bash as my default shell. My problem was that everytime I started rxvt it ignored /etc/profile. Here is the solution (found in man bash):

~.bashrc will be executed on terminal emulators like rxvt, xterm...
/etc/profile and ~.bash_profile will be executed on login shells

The only thing I need to do was editing my ~/.bashrc to source /etc/profile:

# vi ~/.bashrc
. /etc/profile

And then all PATH etc. variables are available again. All to easy!

No comments:

Post a Comment