07:53 (quit) eli: Ping timeout: 264 seconds 08:46 (join) eli 10:54 (quit) sstrickl: Quit: sstrickl 11:19 (nick) samth_away -> samth 11:41 (join) sstrickl 11:48 mattmight: I had a suspicion that #2 was true; now I know: http://www.googlism.com/who_is/m/matthias_felleisen/ 11:49 sstrickl: man, mine's so boring 11:50 mattmight: http://www.googlism.com/who_is/o/olin_shivers/ 11:50 sstrickl: if it doesn't mention jack 'n' zack, it's useless 11:50 sstrickl: zac, even 11:51 sstrickl: "scary mit guy" 11:51 sstrickl: hah 11:52 (part) sstrickl 11:52 (join) sstrickl 11:52 (part) sstrickl 11:52 (join) sstrickl 11:52 mattmight: I need to drop phrases on pages just so I have more interesting stuff for me. 12:14 (quit) samth: Quit: Ex-Chat 12:21 (join) jonrafkind 12:26 (join) samth 12:56 (join) carleastlund 15:40 jay-mccarthy: mattmight: i have tons of aliases for cd-ing to different directories but i think your script is probably much better than that 15:46 mattmight: I used to have a bunch of aliases. Eventually, I got tired of writing aliases and figured a script could do it for me. 15:46 mattmight: I actually have two scripts now: r and f. r = show me recently visited directories, f = show me frequently visited directories. 15:48 jay-mccarthy: it would be cool to get bash completion to have r show the list 15:48 jay-mccarthy: rather than running it 15:48 mattmight: It's possible to do that actually. 15:49 samth: bash completions are easy to write 15:49 jonrafkind: mattmight, can you paste those scripts? 15:49 jay-mccarthy: http://matt.might.net/articles/console-hacks-exploiting-frequency/ 15:50 jonrafkind: cool 15:50 mattmight: I need to update the post to add the recency script. It just has the frequency one now. 15:51 jay-mccarthy: the mysql db seems like overkill 15:51 jay-mccarthy: it would be nice to just use sqlite or bdb so there's no database to admin 15:51 mattmight: Yeah, any db will do. Even a simple flat-file sexpr database would be fine, I bet. 15:52 mattmight: But, I keep other stats in mysql, too, like my mail load. 15:52 jonrafkind: uhh is it strange that my ~/.bash_history is owned by root/root ? 15:52 samth: yes 15:52 mattmight: Check this out in an HTML5-compliant browser: http://matt.might.net/apps/mail-load/ 15:53 mattmight: Green line = inbox count, red line = unread count; time-span = 1 week. 15:53 sstrickl: your moment of bankruptcy? 15:53 samth: having it start fully zoomed is frightening 15:53 jay-mccarthy: i agree 15:53 mattmight: The first derivative of that chart is a good approximation of my stress level. Very useful for Cristian. 15:53 mattmight: err. Cristina 15:53 sstrickl grins. 15:54 mattmight: Yeah, you can see the moment when I declared email bankruptcy too. 15:54 jay-mccarthy: do you have that displayed somewhere? 15:54 jay-mccarthy: ie what do you use this for? 15:54 mattmight: Cristina has it bookmarked. 15:54 jay-mccarthy: hah 15:55 mattmight: I'm eventually going to put it on the bottom of matt.might.net too, so my grad students can check it if I'm not replying to their email. 15:55 jay-mccarthy: that's nice 16:03 eli: mattmight: two things should be obvious: 16:03 eli: (a) This is way shorter than the perl script: sort input-stream | uniq -c | sort -n 16:03 eli: (b) you're working hard for things that are either included or easy to implement in zsh. 16:04 jay-mccarthy: those are in zsh? 16:04 eli: These kind of things either are in, or much easier to get than in bash. 16:04 eli looks 16:07 eli: jay-mccarthy: There's a `dirstack' array, and looking for "zsh dirstack save" has a few possibly relevant things. 16:12 eli: jay-mccarthy: Here's a bit that demonstrates the "general spirit" of zsh -- 16:12 eli: In mattmight's page there's a ~20-line function that runs a command when the directory changes. 16:12 eli: Checks where you were, record new, etc. 16:12 eli: All that is done in the PROMPT_COMMAND. 16:13 eli: In zsh there's a specific `chpwd' hook function that gets called whenever the directory changes. 16:13 eli: But obviously something so useful will be common to hack, 16:13 eli: so you can also have `chpwd_functions' be an array of functions, and each one will be called. 16:14 eli: (bash will probably get there, probbaly, if you wait another decade.) 16:16 jay-mccarthy: i found this: http://www.macosxhints.com/article.php?story=20050806202859392 16:17 jay-mccarthy: but it doesn't seem very elegant because of the external script and it only remembers the last session 16:21 eli: Looks like something ancient. (It uses only `dirs' which is pretty common.) 17:22 (nick) samth -> samth_away 17:38 jay-mccarthy: mattmight: "ls -t | head -7 | xargs ls -d" is very pretty because it keeps column output without showing directory contents 17:39 mattmight: oh, nifty. 17:39 (quit) sstrickl: Quit: sstrickl 17:49 (quit) carleastlund: Quit: carleastlund 18:13 jay-mccarthy: this is what i ended up using: http://gist.github.com/424581 18:13 jay-mccarthy: mattmight and eli 18:18 mattmight: neat 18:18 mattmight: I need to get set up on github. 19:38 eli: jay-mccarthy: what's the point of the "... | xargs ls -d"? 19:38 eli: Also, it looks like it's not space-robust. 19:40 (join) sstrickl 21:31 (quit) jonrafkind: Ping timeout: 260 seconds