coffee.plugin.zsh 300 Bytes
Newer Older
1
2
3
4
#!/bin/zsh

# compile a string of coffeescript and print to output
cf () {
5
  coffee -peb "$1"
6
7
8
}
# compile & copy to clipboard
cfc () {
9
  cf "$1" | pbcopy
10
11
12
13
}

# compile from pasteboard & print
alias cfp='coffeeMe "$(pbpaste)"'
14
15
16

# compile from pasteboard and copy to clipboard
alias cfpc='cfp | pbcopy'