diff options
| author | 2026-05-13 13:43:13 +0100 | |
|---|---|---|
| committer | 2026-05-13 13:43:13 +0100 | |
| commit | 38220f5fbb12fd4327e9515a7040d7a7ac0d55c7 (patch) | |
| tree | 60bcce1a1fd0126ca97b12befba5b15dc84d692e /dot_config/zsh | |
| parent | 80753ca5c819ea498a16844ecfb52c46eb0aa036 (diff) | |
| download | dotfiles-38220f5fbb12fd4327e9515a7040d7a7ac0d55c7.tar.gz dotfiles-38220f5fbb12fd4327e9515a7040d7a7ac0d55c7.tar.bz2 dotfiles-38220f5fbb12fd4327e9515a7040d7a7ac0d55c7.zip | |
feat(zsh): add wlc — tee-like wrapper around wl-copy
wlc pipes stdin to stdout (visible) AND to wl-copy (clipboard).
Usage: `somecmd | wlc`
Diffstat (limited to 'dot_config/zsh')
| -rw-r--r-- | dot_config/zsh/dot_zshrc | 4 |
1 files changed, 4 insertions, 0 deletions
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' |
