convert .ai to .svg using uniconverter

needed to convert a proprietary vector .ai adobe illustrator file to the open .svg format, inkscape failed, ai2svg failed, uniconverted worked! yay. very easy just do:

$ uniconverter Martlet.ai Martlet.svg

Advertisements

coloured tab completion

i <3 tab completion, coloured grep, and coloured ls, however i would love to see coloured tab completion.

what would this entail? imagine you have files: “apply”, “applied” and “applications” in a directory, and you typed: “cat ap” <TAB>, then i would expect to see: apply applied applications (highlighting the rest of the words / options. or perhaps there could be a mode that just highlights the next letter that needs to be typed.

comments? questions? insults!

if someone wants to send me some pointers on the correct way to code this, then i can try to whip it up in my spare time if it doesn’t seem like a behemoth of a project.

ps: maybe this could take off, and then someone could also define a system (or user) wide setting for choosing the colour used for grep, tab completion, and whatever else we colour.

pps: and yes it’s colour, not color :P

grep, shopt:dotglob and (hidden) dot files

i thought grep was broken, but it’s not. see below:

james@dazzle:~$ echo $0
bash
james@dazzle:~$ echo 'hello world' > .hello
james@dazzle:~$ grep 'hello world' *
james@dazzle:~$ grep 'hello world' .*
.hello:hello world
james@dazzle:~$ shopt | grep dotglob
dotglob            off
james@dazzle:~$ shopt -s dotglob
james@dazzle:~$ shopt | grep dotglob
dotglob            on
james@dazzle:~$ grep 'hello world' *
.hello:hello world
james@dazzle:~$ shopt -u dotglob
james@dazzle:~$ shopt | grep dotglob
dotglob            off
james@dazzle:~$ rm .hello
james@dazzle:~$

the problem as it turns out is that the glob character `*’ (the asterisk) doesn’t expand to include dot files unless you have the shopt variable set. so you can either use to workaround shown above or set it. personally i’ll keep mine off.