From 221eb9b90ab4d03b6f00e62f31e979459e08e7ca Mon Sep 17 00:00:00 2001 From: 冯不游 <71683364+mefengl@users.noreply.github.com> Date: Tue, 21 Feb 2023 03:07:45 +0800 Subject: feat(marktext): add plugin Closes #11507 --- plugins/marktext/marktext.plugin.zsh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 plugins/marktext/marktext.plugin.zsh (limited to 'plugins/marktext/marktext.plugin.zsh') diff --git a/plugins/marktext/marktext.plugin.zsh b/plugins/marktext/marktext.plugin.zsh new file mode 100644 index 000000000..1da85bcca --- /dev/null +++ b/plugins/marktext/marktext.plugin.zsh @@ -0,0 +1,7 @@ +# +# If marktext is called without an argument, open MarkText +# If marktext is passed a file, open it in MarkText +# +function marktext() { + open -a "MarkText.app" "$1" +} -- cgit v1.2.3-70-g09d2