Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/celsojr/p2u
Paste text content with Unix-like line endings into Windows Terminal without extra line wrapping.
https://github.com/celsojr/p2u
wsl wsl-terminal wsl2
Last synced: 30 days ago
JSON representation
Paste text content with Unix-like line endings into Windows Terminal without extra line wrapping.
- Host: GitHub
- URL: https://github.com/celsojr/p2u
- Owner: celsojr
- Created: 2019-11-14T13:51:41.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T15:17:02.000Z (almost 2 years ago)
- Last Synced: 2024-10-11T20:38:29.233Z (about 1 month ago)
- Topics: wsl, wsl-terminal, wsl2
- Language: C#
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
- jimsghstars - celsojr/p2u - Paste text content with Unix-like line endings into Windows Terminal without extra line wrapping. (C# #)
README
## p2u (Paste to Unix) [![NuGet Version](https://img.shields.io/nuget/v/p2u.svg)](https://www.nuget.org/packages/p2u)
Paste text content with Unix-like line endings into Windows Terminal without extra line wrapping or spaces. That includes Cmd and Vim.
### Installation
It requires the .NET Core 5.0+ runtime that you can download from here [dot.net](https://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
```### Example
Convert the line endings by doing
```
$ p2u pst --wslLine 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
```
$ p2u --help
p2u 1.0.3
Copyright (c) 2021 Celso Jrpst 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.
```### How to uninstall
You can uninstall the tool using the following command
```
$ dotnet tool uninstall --global p2u
```### How to build and install from source
Run the **Powershell** script from the root folder
```
PS> .\dev-build.ps1
```