From 9008760d84f8658862d716af4a1a118ce45efc20 Mon Sep 17 00:00:00 2001 From: Anthony Wang Date: Fri, 8 Mar 2024 23:13:23 -0500 Subject: Add ccp.fish (clipboard copy) function --- fish/functions/ccp.fish | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 fish/functions/ccp.fish 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 -- cgit v1.2.3-70-g09d2