[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Help-bash] getting bash sh to read in personal config

From: Greg Wooledge
Subject: Re: [Help-bash] getting bash sh to read in personal config
Date: Wed, 28 Oct 2015 09:45:29 -0400
User-agent: Mutt/

I think you're getting side tracked here.

Your goal, as I understand it, is to configure how your window
manager runs terminals.  This is done by editing your window manager's
configuration file, which is read by the WM and not by bash.

You claim that your WM runs terminal commands through sh.  Again,
that makes it not a bash question, since sh isn't bash.  Except that
on your PARTICULAR system AT THIS MOMENT sh happens to be a symlink
to bash.  Fine.  But that also means that when bash is so invoked,
it changes its behavior to partially mimic traditional sh behavior.
Thus, once again, your plan to trick the WM into using bash aliases
is thwarted because you aren't invoking "bash" by that name.

The correct solution, which will be independent of how sh is installed
on your system in the future, is to configure your terminal's X
resources through xrdb and ~/.Xdefaults or ~/.Xresources (opinions
seem to vary about which file is the correct one; you probably want
to pick one to be the actual file, and make the other a symlink).

The second best solution would be to put WRAPPER SCRIPTS (not aliases)
in ~/bin/ to run the terminal with the various options you want, and
have the WM invoke the desired wrapper script.  This will also be
independent of how sh is installed in the future, but has a very small
performance penalty compared to the previous solution.  On the other
hand, you can change the wrapper scripts without restarting the WM.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]