summaryrefslogtreecommitdiff
path: root/fish/functions/ccp.fish
diff options
context:
space:
mode:
Diffstat (limited to 'fish/functions/ccp.fish')
-rw-r--r--fish/functions/ccp.fish8
1 files changed, 8 insertions, 0 deletions
diff --git a/fish/functions/ccp.fish b/fish/functions/ccp.fish
new file mode 100644
index 0000000..c2cba62
--- /dev/null
+++ b/fish/functions/ccp.fish
@@ -0,0 +1,8 @@
+function ccp
+ begin
+ if not isatty stdin
+ read
+ end
+ cat $argv
+ end | fish_clipboard_copy
+end