coffee.plugin.zsh 298 Bytes
Newer Older
1
2
3
4
#!/bin/zsh

# compile a string of coffeescript and print to output
cf () {
5
  coffee -peb "$1"
6
7
8
}
# compile & copy to clipboard
cfc () {
9
  cf "$1" | clipcopy
10
11
}

12
# compile from clipboard & print
Cooper Maruyama's avatar
Cooper Maruyama committed
13
alias cfp='cf "$(clippaste)"'
14

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