Skip to content

add alternative clipboard access methods in non-x11 environments #1520

@unxed

Description

@unxed

...if far2l extensions are not available.

WSL:

    cat | /mnt/c/Windows/System32/clip.exe
    /mnt/c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe Get-Clipboard | sed 's/\r//'

Probably calling just by names should be enough:

    cat | clip
    powershell Get-Clipboard | sed 's/\r//'

Cygwin:

    cat > /dev/clipboard
    cat /dev/clipboard

MacOS:

    cat | pbcopy
    pbpaste

Wayland:

    cat | wl-copy
    wl-paste

Sources:
https://gist.github.com/RichardBronosky/56d8f614fab2bacdd8b048fb58d0c0c7#file-cb
https://stackoverflow.com/a/60849508/1020550

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions