Skip to content

Conversation

@Tatsh
Copy link
Contributor

@Tatsh Tatsh commented Sep 10, 2025

Introducing my package winpbcopy to bring pbcopy and pbpaste commands to Windows.

pbcopy is virtually the same as clip, but there is no equivalent paste command officially. This package provides pbpaste to read the default CF_TEXT clipboard and print it to stdout.

Comes with man pages and a complete test suite.

I am used to typing pbcopy + pbpaste on Linux (where I have an alias) and macOS.

@Tatsh Tatsh force-pushed the winpbcopy branch 10 times, most recently from edec933 to 76283a6 Compare September 11, 2025 05:44
@lazka
Copy link
Member

lazka commented Sep 11, 2025

so, similar to

alias pbcopy='clip.exe'
alias pbpaste='powershell.exe -command "Get-Clipboard"'

?

:)

@Tatsh
Copy link
Contributor Author

Tatsh commented Sep 11, 2025

so, similar to

alias pbcopy='clip.exe'
alias pbpaste='powershell.exe -command "Get-Clipboard"'

?

:)

Yes.

@Tatsh
Copy link
Contributor Author

Tatsh commented Sep 11, 2025

Sorry @lazka I accidentally overwrote your patch but I re-applied it with last push.

@lazka lazka added the new-package Pull request which adds new package(s) label Sep 13, 2025
@Tatsh
Copy link
Contributor Author

Tatsh commented Sep 20, 2025

@lazka it's now in Winget microsoft/winget-pkgs#293992

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-package Pull request which adds new package(s)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants