From 12a46dc6304df7de03309f00a3635b8cc15a3d7e Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Sun, 21 Mar 2021 10:14:56 +0000 Subject: [PATCH] zshrc: Use wl-copy on Wayland --- zshrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zshrc b/zshrc index 1ad4d79..1838ea3 100644 --- a/zshrc +++ b/zshrc @@ -353,7 +353,9 @@ fi if __has_command cryptopassphrase; then pwnk() { local clipboard - if __has_command pbcopy; then + if __has_command wl-copy; then + clipboard=wl-copy + elif __has_command pbcopy; then clipboard=pbcopy elif __has_command xclip; then clipboard=xclip