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