Created
October 24, 2010 11:55
-
-
Save gaving/643480 to your computer and use it in GitHub Desktop.
quick look
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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