coffee.plugin.zsh 296 B

12345678910111213141516
  1. #!/bin/zsh
  2. # compile a string of coffeescript and print to output
  3. cf () {
  4. coffee -peb $1
  5. }
  6. # compile & copy to clipboard
  7. cfc () {
  8. cf $1 | pbcopy
  9. }
  10. # compile from pasteboard & print
  11. alias cfp='coffeeMe "$(pbpaste)"'
  12. # compile from pasteboard and copy to clipboard
  13. alias cfpc='cfp | pbcopy'