Populate repo
This commit is contained in:
16
zsh/.oh-my-zsh/plugins/coffee/coffee.plugin.zsh
Normal file
16
zsh/.oh-my-zsh/plugins/coffee/coffee.plugin.zsh
Normal file
@ -0,0 +1,16 @@
|
||||
#!/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
|
||||
alias cfp='cf "$(clippaste)"'
|
||||
|
||||
# compile from clipboard and copy to clipboard
|
||||
alias cfpc='cfp | clipcopy'
|
Reference in New Issue
Block a user