coffee.plugin.zsh 296 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)"'
14
15
16

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