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

From: Ethan Grammatikidis <eekee57_AT_fastmail.fm>
Date: Mon, 3 Oct 2011 04:44:00 +0100

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

> 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`> '

Okay, why didn't I think of that?
Received on Mon Oct 03 2011 - 05:44:00 CEST

This archive was generated by hypermail 2.3.0 : Mon Oct 03 2011 - 05:48:03 CEST