]> src.twobees.de Git - dotfiles.git/blob - stow/oh-my-zsh/.oh-my-zsh/plugins/coffee/coffee.plugin.zsh
initial
[dotfiles.git] / stow / oh-my-zsh / .oh-my-zsh / plugins / coffee / coffee.plugin.zsh
1 #!/bin/zsh
2
3 # compile a string of coffeescript and print to output
4 cf () {
5   coffee -peb "$1"
6 }
7 # compile & copy to clipboard
8 cfc () {
9   cf "$1" | clipcopy
10 }
11
12 # compile from clipboard & print
13 alias cfp='cf "$(clippaste)"'
14
15 # compile from clipboard and copy to clipboard
16 alias cfpc='cfp | clipcopy'