marked2.plugin.zsh 237 B

123456789101112
  1. #
  2. # If marked is called without an argument, open Marked
  3. # If marked is passed a file, open it in Marked
  4. #
  5. function marked() {
  6. if [ "$1" ]
  7. then
  8. open -a "marked 2.app" "$1"
  9. else
  10. open -a "marked 2.app"
  11. fi
  12. }