2021-01-19 07:28:27 +00:00
|
|
|
if which termux-info &> /dev/null
|
|
|
|
alias pbcopy 'termux-clipboard-set'
|
|
|
|
alias pbpaste 'termux-clipboard-get'
|
2021-10-19 09:16:33 +00:00
|
|
|
else if set -q WAYLAND_DISPLAY; and type -q wl-paste; and type -q wl-copy
|
2021-01-19 07:28:27 +00:00
|
|
|
alias pbcopy 'wl-copy'
|
|
|
|
alias pbpaste 'wl-paste'
|
2021-10-19 09:16:33 +00:00
|
|
|
else
|
2022-07-07 12:20:44 +00:00
|
|
|
alias pbcopy 'xsel -i -b'
|
2021-10-19 09:16:33 +00:00
|
|
|
alias pbpaste 'xsel -o'
|
2021-01-19 07:28:27 +00:00
|
|
|
end
|