[Fabric] WSL How to use pbpaste for windows.
HTML-код
- Опубликовано: 6 окт 2024
- Step 1. nano ~/.bashrc
Step 2. Place these lines in the bash file. Somewhere towards the bottom is what I did.
alias pbcopy='clip.exe'
alias pbpaste='powershell.exe Get-Clipboard'
Step 3. Reload the shell
source ~/.bashrc
Hope you all enjoyed.
I have used the Powershell instead of the cmd terminal and run 'Get-Clipboard | fabric --pattern summarize' instead of using 'pbpaste | fabric --pattern summarize'. It appears to be working since Powershell can be used as cmd and have more capabilities
Thanks for sharing!