Created
April 8, 2024 05:28
-
-
Save i2van/8d48368167a8392ab6fa365ba910a46c to your computer and use it in GitHub Desktop.
far2l WSL2 bash script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
case "$1" in | |
get) | |
#/mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe Get-Clipboard | sed 's/\r//' | |
pwsh -Command Get-Clipboard -Raw | |
;; | |
set) | |
/mnt/c/Windows/System32/clip.exe | |
;; | |
"") | |
(far2l --clipboard=$(readlink -f $0) >/dev/null 2>&1 &) | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment