From 4b7f611afe65eb285f3911f6722fc6385d8a482a Mon Sep 17 00:00:00 2001 From: Cooper Maruyama Date: Mon, 15 Jun 2015 01:22:13 -0700 Subject: [PATCH 1/2] Improve readability of README. --- plugins/coffee/README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/coffee/README.md b/plugins/coffee/README.md index d0e7bbe74..e065dd389 100644 --- a/plugins/coffee/README.md +++ b/plugins/coffee/README.md @@ -7,11 +7,13 @@ When writing Coffeescript it's very common to want to preview the output of a certain snippet of code, either because you want to test the output or because you'd like to execute it in a browser console which doesn't accept Coffeescript. -Preview the compiled result of your coffeescript with `cf "code"` as per the -following: +Preview the compiled result of your coffeescript with `cf "code"`, as shown in this example: ```zsh -$ cf 'if a then be else c' +$ cf 'if a then b else c' +``` +which would output the following: +```zsh if (a) { b; } else { From 8a7806d5a42d4a025ea4e76f9e442fbb2962100b Mon Sep 17 00:00:00 2001 From: Cooper Maruyama Date: Mon, 15 Jun 2015 01:22:40 -0700 Subject: [PATCH 2/2] Fix typo. * `cfp` alias was referencing an old version of the `cf` command which no longer exists. This has been updated to reference a valid command. --- plugins/coffee/coffee.plugin.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/coffee/coffee.plugin.zsh b/plugins/coffee/coffee.plugin.zsh index 1a7bedd87..45d25b306 100644 --- a/plugins/coffee/coffee.plugin.zsh +++ b/plugins/coffee/coffee.plugin.zsh @@ -10,7 +10,7 @@ cfc () { } # compile from pasteboard & print -alias cfp='coffeeMe "$(pbpaste)"' +alias cfp='cf "$(pbpaste)"' # compile from pasteboard and copy to clipboard alias cfpc='cfp | pbcopy'