Re: [dev] Make dmenu sensitive to user aliases ("Hello world")

From: Patrick Haller <201009-suckless_AT_haller.ws>
Date: Mon, 3 Oct 2011 08:05:26 +0800

On 2011-10-02 22:52, Ethan Grammatikidis wrote:
> On Sat, 01 Oct 2011 21:55:56 +0300
> "Kiriakos at Kindstudios" <kappa_AT_kindstudios.gr> wrote:
>
> > Hi there,
> >
> > I'm using many aliases in my terminal sessions and want to be able to use
> > them with dmenu
> > (which I use as the default menu in all of my xmonad installations) aswell.
> >
> > Is that possible? I haven't gotten a real chance to look at the code yet
> > (just downloaded it).
> > I'm a total noob when it comes to actually modifying C sources so I
> > thought that I should
> > fire off a request in the offchance somebody has already done that or can
> > point in the right
> > direction.
>
> I'm using scripts where I once used aliases, mostly because it's far
> more convenient to write or alter a script than to update an alias or
> function in all my open terminals.

??? something like?

update_config() { [ `mtime $cfg` -gt `mtime $history` ] && . $cfg ; }
export PS1='`update_config`> '


Patrick
Received on Mon Oct 03 2011 - 02:05:26 CEST

This archive was generated by hypermail 2.3.0 : Mon Oct 03 2011 - 02:24:02 CEST