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

2011-10-03 Thread Andrew Hills
On Mon, Oct 3, 2011 at 3:18 PM, Kurt H Maier wrote: > mouthbreathing farmers. I can't tell whether or not this is an insult. --Andrew Hills

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

2011-10-03 Thread Kurt H Maier
On Mon, Oct 3, 2011 at 3:04 PM, Connor Lane Smith wrote: > Strangely, this is actually a difficult problem to solve elegantly > whilst remaining POSIX-compliant. dmenu_run uses a hack involving 'ls > -t'. It's gross. I'd like to see sbase include a version of stat(1) that wasn't written by mouthb

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

2011-10-03 Thread Connor Lane Smith
On 3 October 2011 20:01, Suraj N. Kurapati wrote: > I stand corrected.  Thank you. Strangely, this is actually a difficult problem to solve elegantly whilst remaining POSIX-compliant. dmenu_run uses a hack involving 'ls -t'. It's gross. cls

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

2011-10-03 Thread Suraj N. Kurapati
On Mon 03 Oct 2011 07:49:04 PM PDT, Connor Lane Smith wrote: > On 3 October 2011 19:42, Suraj N. Kurapati wrote: > > Never heard of mtime(1).  Is that POSIX sh?  This is: > > > > update_config() { [ $cfg -nt $history ] && . $cfg ; } > > No it isn't, the '-nt' flag is a non-POSIX test(1) extension.

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

2011-10-03 Thread Connor Lane Smith
Hey, On 3 October 2011 19:42, Suraj N. Kurapati wrote: > Never heard of mtime(1).  Is that POSIX sh?  This is: > > update_config() { [ $cfg -nt $history ] && . $cfg ; } No it isn't, the '-nt' flag is a non-POSIX test(1) extension. cls

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

2011-10-03 Thread Suraj N. Kurapati
On Mon 03 Oct 2011 08:05:26 AM PDT, Patrick Haller wrote: > update_config() { [ `mtime $cfg` -gt `mtime $history` ] && . $cfg > ; } > export PS1='`update_config`> ' Never heard of mtime(1). Is that POSIX sh? This is: update_config() { [ $cfg -nt $history ] && . $cfg ; } -- Waste not fresh tea

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

2011-10-02 Thread Ethan Grammatikidis
On Mon, 3 Oct 2011 08:05:26 +0800 Patrick Haller <201009-suckl...@haller.ws> wrote: > On 2011-10-02 22:52, Ethan Grammatikidis wrote: > > On Sat, 01 Oct 2011 21:55:56 +0300 > > "Kiriakos at Kindstudios" wrote: > > > > > Hi there, > > > > > > I'm using many aliases in my terminal sessions and want

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

2011-10-02 Thread Patrick Haller
On 2011-10-02 22:52, Ethan Grammatikidis wrote: > On Sat, 01 Oct 2011 21:55:56 +0300 > "Kiriakos at Kindstudios" 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 ins

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

2011-10-02 Thread Ethan Grammatikidis
On Sat, 01 Oct 2011 21:55:56 +0300 "Kiriakos at Kindstudios" 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

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

2011-10-01 Thread Rob
On 1 October 2011 19:55, Kiriakos at Kindstudios wrote: > I'm using many aliases in my terminal sessions and want to be able to use > them with dmenu Just a guess - in dmenu_run, source the file that defines your aliases, before doing anything else. Rob

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

2011-10-01 Thread Kiriakos at Kindstudios
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 whe