diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2017-07-15 17:00:38 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2017-07-15 17:00:38 +0200 |
| commit | ffcc69d8ba57497efa4461dfccde8e35af4aa3d3 (patch) | |
| tree | 6d88529d694e11f6006768bbf72e6eda62d307f9 /config/fish/functions/c2p.fish | |
| parent | 5004951e471fae7576243c85de6523bd5ac61ad0 (diff) | |
| download | dotfiles-ffcc69d8ba57497efa4461dfccde8e35af4aa3d3.tar.gz dotfiles-ffcc69d8ba57497efa4461dfccde8e35af4aa3d3.zip | |
add functions to copy primary to clipboard and vice versa
Diffstat (limited to 'config/fish/functions/c2p.fish')
| -rw-r--r-- | config/fish/functions/c2p.fish | 3 |
1 files changed, 3 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 |
