News for hackers. Stuff that matters.
Re:A multi-purpose EDITOR variable by dmckeon on Saturday March 30, 2013 @07:22PM (#5467021)
To edit several files of one type in one call:

    #!/bin/bash
    case $1 in
        *_EDITMSG | *MERGE_MSG | *_TAGMSG) 
                        /usr/local/bin/vim      "$@" ;;
        *.md | *.txt)   /usr/local/bin/mmdc     "$@" ;;
        *)              /usr/local/bin/subl -w  "$@" ;;
    esac

There are no comments on this comment yet.