←back to thread

700 points yen223 | 3 comments | | HN request time: 1.083s | source
1. cglong ◴[] No.42065168[source]
One-liner for previewing a file with Quick Look. I aliased this to `ql` :)

    qlmanage -p $argv >/dev/null 2>&1
replies(1): >>42066635 #
2. hk1337 ◴[] No.42066635[source]
I'm curious if there's a way to do this with standard input instead of having to supply a filename?

I do this with man pages but it opens up in a full Preview window, not QuickLook.

replies(1): >>42071158 #
3. archargelod ◴[] No.42071158[source]
You can use process substitution[0] to have a command output act as a file:

  qlmanage -p <(man man) >/dev/null 2>&1
0 - https://www.gnu.org/software/bash/manual/html_node/Process-S... (it works in zsh too, but bash manual explains this feature more clearly)