coffee.plugin.zsh
298 bytes
1#!/bin/zsh
2
3# compile a string of coffeescript and print to output
4cf () {
5 coffee -peb "$1"
6}
7# compile & copy to clipboard
8cfc () {
9 cf "$1" | clipcopy
10}
11
12# compile from clipboard & print
13alias cfp='cf "$(clippaste)"'
14
15# compile from clipboard and copy to clipboard
16alias cfpc='cfp | clipcopy'