Coder Social home page Coder Social logo

p2u's Introduction

p2u (Paste to Unix) NuGet Version

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

.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 --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

$ 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.

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

p2u's People

Contributors

celsojr avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.