Add some clipboard aliases

This commit is contained in:
Scott Wallace 2019-04-30 09:57:06 +01:00
parent f1bf69d50c
commit cd506694e8

View file

@ -106,3 +106,14 @@
loop: "{{ gnome_custom_keybindings }}" loop: "{{ gnome_custom_keybindings }}"
loop_control: loop_control:
index_var: index index_var: index
- name: 'Shell: Clipboard aliases'
tags:
- config
- shell
copy:
content: |
[[ -x /usr/bin/copyq ]] && function pbpaste() { /usr/bin/copyq clipboard; } && export -f pbpaste
[[ -x /usr/bin/copyq ]] && function pbcopy() { /usr/bin/copyq add -; } && export -f pbcopy
dest: '~/.bashrc.d/alias.clipboard'
mode: '0400'