aboutsummaryrefslogtreecommitdiff
path: root/config/fish/functions/p2c.fish
diff options
context:
space:
mode:
authorFlorian Fischer <muhq@muhq.space>2017-08-04 02:37:37 +0200
committerFlorian Fischer <muhq@muhq.space>2017-08-04 02:37:37 +0200
commit23ea135944cab0abc7dc7bb0b1dbc622bbd59e0e (patch)
tree1696d38e31d1b47fe75d2089afe5a0c9e447570c /config/fish/functions/p2c.fish
parent9a051e9ff562a7fdcffdb9d765d084822948f344 (diff)
parenta994b1c03298326f6003458e1a2026ee00ef51a9 (diff)
downloaddotfiles-23ea135944cab0abc7dc7bb0b1dbc622bbd59e0e.tar.gz
dotfiles-23ea135944cab0abc7dc7bb0b1dbc622bbd59e0e.zip
Merge branch 'master' of https://github.com/fischerling/dotfiles
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