p2u 1.0.1
There is a newer version of this package available.
See the version list below for details.
See the version list below for details.
dotnet tool install --global p2u --version 1.0.1
This package contains a .NET tool you can call from the shell/command line.
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local p2u --version 1.0.1
This package contains a .NET tool you can call from the shell/command line.
#tool dotnet:?package=p2u&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
nuke :add-package p2u --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
p2u (Paste to unix) ![NuGet Version](https://img.shields.io/nuget/v/p2u.svg)
Paste text contents with unix like line endings into Windows Terminal without line breakings
Installation
$ dotnet tool install --global p2u
After installation, copy any bash multi-line commands like this from the internet
helm install --name redis-cluster \
--set cluster.slaveCount=3 \
--set password=password \
--set securityContext.enabled=true \
--set securityContext.fsGroup=2000 \
--set securityContext.runAsUser=1000 \
--set volumePermissions.enabled=true \
--set master.persistence.enabled=true \
--set master.persistence.path=/data \
--set master.persistence.size=8Gi \
--set master.persistence.storageClass=manual \
--set slave.persistence.enabled=true \
--set slave.persistence.path=/data \
--set slave.persistence.size=8Gi \
--set slave.persistence.storageClass=manual \
stable/redis
Example
Convert the line endings by doing
$ p2u -wsl
Line endings converted!
Try to hit the right mouse button now (or CTRL+SHIFT+V)...
And then paste into Windows Terminal like you do in other unix system terminals
How to use
USAGE:
Copy content from anywhere and run it before pasting into Wsl, which is the default:
p2u --wsl
And before pasting into Cmd without any feedback messages:
p2u --cmd --silent
-s, --silent Run without print any feedback message
-c, --cmd Paste text content into cmd/DOS with Windows Terminal
-v, --vim Paste text content into Vim with Windows Terminal
-p, --powershell Paste text content into Powershell with Windows Terminal
-b, --git-bach Paste text content into Git Bash with Windows Terminal
-w, --wsl (Default: true) Paste text content into WSL (Windows Subsystem for Linux) with Windows Terminal
--help Display this help screen.
How to uninstall
You can uninstall the tool using the following command
$ dotnet tool uninstall --global p2u
How to build from the source
Run the Powershell script from the root folder like shown bellow
PS> .\dev-build.ps1
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. |
.NET Core | netcoreapp3.0 is compatible. netcoreapp3.1 was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.