dotfiles/symlinks/config/fish/platform_config/linux.fish

11 lines
292 B
Fish
Raw Normal View History

2021-01-19 07:28:27 +00:00
if which termux-info &> /dev/null
alias pbcopy 'termux-clipboard-set'
alias pbpaste 'termux-clipboard-get'
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'
else
alias pbcopy 'xsel -i'
alias pbpaste 'xsel -o'
2021-01-19 07:28:27 +00:00
end