Leopard quicklook from the commandline 2

Posted by Tim Connor Thu, 29 Nov 2007 00:58:00 GMT

I’ve come across a number of these, but here is my favorite (put this in your .profile):

function ql()
{
qlmanage -p "$@" >& /dev/null
}
I don’t like how people are backgrounding it or trying to get fancy, primarily, because any of the scripts claiming to make the spacebar-kills-QL functionality work, didn’t. This way CTRL-C does what it should, instead. It also maintains the qlmanage functionality of slideshowing multiple params.

Be careful when you paste it to convert curly quotes back to straight quotes. >:|

  1. Phil about 17 hours later:

    I don’t think you’d want to put this in your profile. It looks pretty shell-specific, so it would probably be better off in your .bashrc or .zshrc so it doesn’t run in other shells.

  2. Tim Connor about 19 hours later:

    Or just make it a one-liner shell script instead, like some of the other soultions. ;) I don’t run other shells, though, so I should be good, right?

Comment form

(leave url/email »)

Help with Textile (code)