coffee.plugin.zsh 298 B

1234567891011121314151617
  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" | clipcopy
  9. }
  10. # compile from clipboard & print
  11. alias cfp='cf "$(clippaste)"'
  12. # compile from clipboard and copy to clipboard
  13. alias cfpc='cfp | clipcopy'