Paste text content with Unix-like line endings into Windows Terminal without extra line wrapping or spaces. That includes Cmd and Vim.
It requires the .NET Core 5.0+ runtime that you can download from here dot.net
.NET Core is a cross-platform version of .NET for building websites, services, and console apps.
$ 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
Convert the line endings by doing
$ p2u pst --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
$ p2u --help
p2u 1.0.3
Copyright (c) 2021 Celso Jr
pst Paste the text content that you copied from the Internet.
dir Set all profiles with the current folder location as the starting directory.
help Display more information on a specific command.
version Display version information.
You can uninstall the tool using the following command
$ dotnet tool uninstall --global p2u
Run the Powershell script from the root folder
PS> .\dev-build.ps1