]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/marked2/marked2.plugin.zsh
56863ade57dd34a7fb3158d369e8b36860349ea5
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / marked2 / marked2.plugin.zsh
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 }