Skip to content

Instantly share code, notes, and snippets.

@datacoda
Last active August 29, 2015 13:56

Revisions

  1. Ted Chen renamed this gist Feb 24, 2014. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. Ted Chen created this gist Feb 24, 2014.
    17 changes: 17 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,17 @@
    #!/bin/sh

    OPTS=''
    ARGS=`getopt nawhbv $*`
    set -- $ARGS
    for i
    do
    if [[ $i == \-* ]]
    then
    OPTS="$OPTS $i"
    else
    FPATH=`cygpath -w $i`
    OPTS="$OPTS $FPATH"
    fi
    done

    /cygdrive/c/Program\ Files/Sublime\ Text\ 3/sublime_text.exe $OPTS