Add support for linux pbcopy on X11 too

pull/2/head
Ensar Sarajčić 2021-10-19 11:16:33 +02:00
parent 7cb1f435a0
commit 513b436019
1 changed files with 4 additions and 1 deletions

View File

@ -1,7 +1,10 @@
if which termux-info &> /dev/null
alias pbcopy 'termux-clipboard-set'
alias pbpaste 'termux-clipboard-get'
else
else if set -q WAYLAND_DISPLAY; and type -q wl-paste; and type -q wl-copy
alias pbcopy 'wl-copy'
alias pbpaste 'wl-paste'
else
alias pbcopy 'xsel -i'
alias pbpaste 'xsel -o'
end