4 ms·
One-liner for previewing a file with Quick Look. I aliased this to `ql` :) qlmanage -p $argv >/dev/null 2>&1
by cglong 2y ago
One-liner for previewing a file with Quick Look. I aliased this to `ql` :)
qlmanage -p $argv >/dev/null 2>&1
- hk1337 2y agoI'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.
- archargelod 2y agoYou 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-Substitution.html https://www.gnu.org/software/bash/manual/html_node/Process-S... (it works in zsh too, but bash manual explains this feature more clearly)