ohmyzsh/plugins/coffee/coffee.plugin.zsh
2015-10-31 06:26:30 -04:00

20 lines
404 B
Bash

#!/bin/zsh
# compile a string of coffeescript and print to output
cf () {
coffee -peb "$1"
}
# compile & copy to clipboard
cfc () {
cf "$1" | clipcopy
}
# compile from clipboard & print
<<<<<<< HEAD
alias cfp='cf "$(clippaste)"'
=======
alias cfp='coffeeMe "$(clippaste)"'
>>>>>>> c0134a9450e486251b247735e022d7efeb496b9c
# compile from clipboard and copy to clipboard
alias cfpc='cfp | clipcopy'