Use Quick Look from within a shell
Add this code to your /Users/
# Display files in Quick Look
function ql ()
{
(qlmanage -p “$@” > /dev/null 2>&1 &
local ql_pid=$!
read -sn 1
kill ${ql_pid}) > /dev/null 2>&1
}
# Display any filetype as plain text
function qlt ()
{
(qlmanage -p -c public.plain-text “$@” > /dev/null 2>&1 &
local ql_pid=$!
read -sn 1
kill ${ql_pid}) > /dev/null 2>&1
}
function ql ()
{
(qlmanage -p “$@” > /dev/null 2>&1 &
local ql_pid=$!
read -sn 1
kill ${ql_pid}) > /dev/null 2>&1
}
# Display any filetype as plain text
function qlt ()
{
(qlmanage -p -c public.plain-text “$@” > /dev/null 2>&1 &
local ql_pid=$!
read -sn 1
kill ${ql_pid}) > /dev/null 2>&1
}
Extend Quicklook with Plugins
Personally I like the Zip and TextMate extensions, but there’s more (or build your own).
No Comments
Leave a Reply