Skip to content

Instantly share code, notes, and snippets.

@gaving
Created October 24, 2010 11:55
Show Gist options
  • Select an option

  • Save gaving/643480 to your computer and use it in GitHub Desktop.

Select an option

Save gaving/643480 to your computer and use it in GitHub Desktop.
quick look
# 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
}
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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment