aboutsummaryrefslogtreecommitdiff
path: root/config/fish/functions/p2c.fish
diff options
context:
space:
mode:
Diffstat (limited to 'config/fish/functions/p2c.fish')
-rw-r--r--config/fish/functions/p2c.fish3
1 files changed, 3 insertions, 0 deletions
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