From 513b436019cc3777faa255dcd2bac90994158c8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Tue, 19 Oct 2021 11:16:33 +0200 Subject: [PATCH] Add support for linux pbcopy on X11 too --- symlinks/config/fish/platform_config/linux.fish | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/symlinks/config/fish/platform_config/linux.fish b/symlinks/config/fish/platform_config/linux.fish index b027f16..f2bfd35 100644 --- a/symlinks/config/fish/platform_config/linux.fish +++ b/symlinks/config/fish/platform_config/linux.fish @@ -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