summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony Wang2024-03-08 23:22:00 -0500
committerAnthony Wang2024-03-08 23:22:00 -0500
commit36ed9be1a70988011694d43aa6d93f5167f6d71f (patch)
tree263b27d8a8b0783ccb49db5deb4631e91c915a55
parent9008760d84f8658862d716af4a1a118ce45efc20 (diff)
Simplify ccp.fish
This breaks stuff like `ls | ccp file` but I probably wouldn't do that in the first place, just either piping or copying a file, not both
-rw-r--r--fish/functions/ccp.fish7
1 files changed, 1 insertions, 6 deletions
diff --git a/fish/functions/ccp.fish b/fish/functions/ccp.fish
index c2cba62..c1db6d0 100644
--- a/fish/functions/ccp.fish
+++ b/fish/functions/ccp.fish
@@ -1,8 +1,3 @@
function ccp
- begin
- if not isatty stdin
- read
- end
- cat $argv
- end | fish_clipboard_copy
+ cat $argv | fish_clipboard_copy
end