coffee.plugin.zsh 221 Bytes
Newer Older
1
2
3
4
5
6
7
8
#!/bin/zsh

# compile a string of coffeescript and print to output
cf () {
  coffee -peb $1
}
# compile & copy to clipboard
cfc () {
Cooper Maruyama's avatar
typofix    
Cooper Maruyama committed
9
  cf $1 | pbcopy
10
11
12
13
}

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