On Wed, 24 Mar 2010 23:11:26 +0100, Ivan Andrus <darthand...@gmail.com> wrote: > Looking at changing the option style for sage got me looking for tab > completion in bash (e.g. ./sage --n[TAB] => ./sage --notebook). I thought > there was already something written but, I couldn't find anything and so I > threw something together. > > It's very inefficient (it parses the output of `sage --help` and `sage > --advanced` and the first run is quite slow), but it's small (only 35 lines) > and shouldn't require much maintenance as long as the help messages are > updated. It's not POSIX compliant (e.g. it uses grep -o) but I would be > willing to make it so. > > I'm wondering if others are interested, and if so whether I should put it on > the wiki, make an spkg or add it directly to sage somewhere (data/extcode??).
Hi Ivan, I am a big fan of bash completion, so I'm definitely interested. You should at least put it on the wiki to start with. Best, Alex -- Alex Ghitza -- http://aghitza.org/ Lecturer in Mathematics -- The University of Melbourne -- Australia -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org To unsubscribe from this group, send email to sage-devel+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.