aboutsummaryrefslogtreecommitdiff
path: root/config/fish
diff options
context:
space:
mode:
Diffstat (limited to 'config/fish')
-rw-r--r--config/fish/functions/c2p.fish3
-rw-r--r--config/fish/functions/p2c.fish3
2 files changed, 6 insertions, 0 deletions
diff --git a/config/fish/functions/c2p.fish b/config/fish/functions/c2p.fish
new file mode 100644
index 0000000..e84b5e4
--- /dev/null
+++ b/config/fish/functions/c2p.fish
@@ -0,0 +1,3 @@
+function c2p --description 'Copy clipboard to primary selection'
+ xclip -o -selection clipboard | xclip -i -selection primary
+end
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