2015-05-01 08:34:20 +00:00
|
|
|
#!/bin/zsh
|
|
|
|
|
|
|
|
# compile a string of coffeescript and print to output
|
|
|
|
cf () {
|
2015-07-08 02:16:44 +00:00
|
|
|
coffee -peb "$1"
|
2015-05-01 08:34:20 +00:00
|
|
|
}
|
|
|
|
# compile & copy to clipboard
|
|
|
|
cfc () {
|
2015-09-28 12:52:03 +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'
|