2015-05-01 08:34:20 +00:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
# compile a string of coffeescript and print to output
|
|
|
|
cf () {
|
|
|
|
coffee -peb $1
|
|
|
|
}
|
|
|
|
# compile & copy to clipboard
|
|
|
|
cfc () {
|
2015-08-18 02:53:45 +00:00
|
|
|
cf $1 | clipcopy
|
2015-05-01 08:34:20 +00:00
|
|
|
}
|
|
|
|
|
2015-08-18 02:53:45 +00:00
|
|
|
# compile from clipboard & print
|
|
|
|
alias cfp='coffeeMe "$(clippaste)"'
|
2015-05-02 14:14:21 +00:00
|
|
|
|
2015-08-18 02:53:45 +00:00
|
|
|
# compile from clipboard and copy to clipboard
|
|
|
|
alias cfpc='cfp | clipcopy'
|