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