coffee.plugin.zsh 300 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 () {
9
  cf $1 | clipcopy
10
11
}

12
13
# compile from clipboard & print
alias cfp='coffeeMe "$(clippaste)"'
14

15
16
# compile from clipboard and copy to clipboard
alias cfpc='cfp | clipcopy'