Skip to content

Instantly share code, notes, and snippets.

@mjj2000
Last active August 29, 2015 14:08
Show Gist options
  • Select an option

  • Save mjj2000/db8cde516af0f97f5e1f to your computer and use it in GitHub Desktop.

Select an option

Save mjj2000/db8cde516af0f97f5e1f to your computer and use it in GitHub Desktop.

Revisions

  1. mjj2000 revised this gist Nov 1, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1 +1 @@
    qlook="qlmanage -p 2>/dev/null"
    alias qlook="qlmanage -p 2>/dev/null"
  2. mjj2000 revised this gist Nov 1, 2014. 2 changed files with 1 addition and 11 deletions.
    1 change: 1 addition & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    qlook="qlmanage -p 2>/dev/null"
    11 changes: 0 additions & 11 deletions qlook.sh
    Original file line number Diff line number Diff line change
    @@ -1,11 +0,0 @@
    #!/bin/bash
    ###################################################################################
    # Script to trigger quick look of target files in Mac OS X
    # usage:
    #
    # $ qlook.sh /path/to/target/file # quick look a single
    # $ qlook.sh /path/to/target/files1 /path/to/target/files2 # quick look multiple files
    # $ qlook.sh /path/to/target/files* # quick look multiple files by wildcard filename
    #
    ###################################################################################
    ls "$@" | xargs -I {} echo \"{}\" | xargs qlmanage -p 2>/dev/null
  3. mjj2000 revised this gist Nov 1, 2014. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion qlook.sh
    Original file line number Diff line number Diff line change
    @@ -8,4 +8,4 @@
    # $ qlook.sh /path/to/target/files* # quick look multiple files by wildcard filename
    #
    ###################################################################################
    ls "$@" | xargs -I {} echo \"{}\" | xargs qlmanage -p
    ls "$@" | xargs -I {} echo \"{}\" | xargs qlmanage -p 2>/dev/null
  4. mjj2000 revised this gist Nov 1, 2014. 2 changed files with 11 additions and 3 deletions.
    3 changes: 0 additions & 3 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +0,0 @@
    # an alias named `qlook` that can trigger quick look of target file in Max OS X
    # usage: qlook /path/to/target/file
    alias qlook="qlmanage -p"
    11 changes: 11 additions & 0 deletions qlook.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    #!/bin/bash
    ###################################################################################
    # Script to trigger quick look of target files in Mac OS X
    # usage:
    #
    # $ qlook.sh /path/to/target/file # quick look a single
    # $ qlook.sh /path/to/target/files1 /path/to/target/files2 # quick look multiple files
    # $ qlook.sh /path/to/target/files* # quick look multiple files by wildcard filename
    #
    ###################################################################################
    ls "$@" | xargs -I {} echo \"{}\" | xargs qlmanage -p
  5. mjj2000 created this gist Nov 1, 2014.
    3 changes: 3 additions & 0 deletions gistfile1.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    # an alias named `qlook` that can trigger quick look of target file in Max OS X
    # usage: qlook /path/to/target/file
    alias qlook="qlmanage -p"