mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-03-27 03:14:56 +01:00
20 lines
404 B
Bash
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'
|