From ffcc69d8ba57497efa4461dfccde8e35af4aa3d3 Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sat, 15 Jul 2017 17:00:38 +0200 Subject: add functions to copy primary to clipboard and vice versa --- config/fish/functions/p2c.fish | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 config/fish/functions/p2c.fish (limited to 'config/fish/functions/p2c.fish') diff --git a/config/fish/functions/p2c.fish b/config/fish/functions/p2c.fish new file mode 100644 index 0000000..02072da --- /dev/null +++ b/config/fish/functions/p2c.fish @@ -0,0 +1,3 @@ +function p2c --description 'Copy primary selection to clipboard' + xclip -o -selection primary | xclip -i -selection clipboard +end -- cgit v1.2.3