diff options
author | Andrew Janke <andrew@apjanke.net> | 2015-08-17 22:53:45 -0400 |
---|---|---|
committer | Andrew Janke <andrew@apjanke.net> | 2015-08-18 03:49:51 -0400 |
commit | 5c8b0cc0c1782b34790548498018fb9e0300992b (patch) | |
tree | fe9f02d629f970470369ef7f2f6938589277db16 /plugins/coffee | |
parent | 192de6bcffb0294e19f4203f6f7dc1a7f3e427be (diff) | |
download | zsh-5c8b0cc0c1782b34790548498018fb9e0300992b.tar.gz zsh-5c8b0cc0c1782b34790548498018fb9e0300992b.tar.bz2 zsh-5c8b0cc0c1782b34790548498018fb9e0300992b.zip |
Add clipcopy() and clippaste() generic cross-platform CLI clipboard functions.
Change copydir, copyfile, and coffee plugins to use them, instead of the Mac-only `pbcopy` command.
Diffstat (limited to 'plugins/coffee')
-rw-r--r-- | plugins/coffee/coffee.plugin.zsh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/coffee/coffee.plugin.zsh b/plugins/coffee/coffee.plugin.zsh index 1a7bedd87..c7b486a6b 100644 --- a/plugins/coffee/coffee.plugin.zsh +++ b/plugins/coffee/coffee.plugin.zsh @@ -6,11 +6,11 @@ cf () { } # compile & copy to clipboard cfc () { - cf $1 | pbcopy + cf $1 | clipcopy } -# compile from pasteboard & print -alias cfp='coffeeMe "$(pbpaste)"' +# compile from clipboard & print +alias cfp='coffeeMe "$(clippaste)"' -# compile from pasteboard and copy to clipboard -alias cfpc='cfp | pbcopy' +# compile from clipboard and copy to clipboard +alias cfpc='cfp | clipcopy' |