From 38220f5fbb12fd4327e9515a7040d7a7ac0d55c7 Mon Sep 17 00:00:00 2001 From: sommerfeld Date: Wed, 13 May 2026 13:43:13 +0100 Subject: feat(zsh): add wlc — tee-like wrapper around wl-copy MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit wlc pipes stdin to stdout (visible) AND to wl-copy (clipboard). Usage: `somecmd | wlc` --- dot_config/zsh/dot_zshrc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'dot_config/zsh') diff --git a/dot_config/zsh/dot_zshrc b/dot_config/zsh/dot_zshrc index d4a9715..c7d5e90 100644 --- a/dot_config/zsh/dot_zshrc +++ b/dot_config/zsh/dot_zshrc @@ -237,6 +237,10 @@ alias cpr='rsync --archive -hh --partial --info=stats1,progress2 --modify-window alias mvr='rsync --archive -hh --partial --info=stats1,progress2 --modify-window=1 --remove-source-files' alias sub='subliminal download -l en' +# wl-copy that also passes stdin through to stdout (tee-like). +# Use `| wlc` to copy AND see the output. +wlc() { tee >(wl-copy "$@"); } + # Neovim alias n='nvim' alias ndiff='nvim -d' -- cgit v1.3.1